Skip to content

Commit

Permalink
Merge pull request ioBroker#744 from ioBroker/issue-743
Browse files Browse the repository at this point in the history
fixed issue that only valid JSON could be sent to app via message state
  • Loading branch information
foxriver76 authored Apr 11, 2024
2 parents c19528d + d43485f commit 96320f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ setState('iot.0.app.message', JSON.stringify({
-->

## Changelog
### **WORK IN PROGRESS**
* (foxriver76) fixed issue that only valid JSON could be sent to app via message state

### 3.2.0 (2024-04-10)
* (foxriver76) implemented geofence with ioBroker Visu app

Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ async function sendMessageToApp(message) {
adapter.log.warn(`Cannot parse message: ${json}`);
json = null;
}
} else {
json = null;
}

if (!json) {
Expand Down

0 comments on commit 96320f8

Please sign in to comment.