forked from tbnobody/OpenDTU
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid sending null through live data websockets
on the "main" live data websocket this can happen if no OnBattery-specific data is available to sent but the empty JSON document is still sent, which trips the web application. publishing null in the battery live data websocket also trips the web application, which rightfully assumes a valid object if data is received through the websocket.
- Loading branch information
1 parent
13e4205
commit d935283
Showing
2 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters