-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT Split topic data into many topics #588
Comments
Same explanation as in #260. JSON payloads are grouped by time, they all have a group of sensor/relay/heartbeat data plus some metadata. |
This is controlled by the MQTT_USE_JSON_DELAY and MQTT_QUEUE_MAX_SIZE setting in general.h. Messages within 100ms are grouped up to a max of 10 messages. Changing the MQTT_QUEUE_MAX_SIZE to something like 20 will probably group them. |
Sorry, but is solution not work {
"analog": "355",
"time": "2018-02-26 21:20:05",
"mac": "XX:XX:XX:XX:XX:XX",
"host": "witty",
"ip": "10.1.1.17",
"id": 3007
} {
"app": "ESPURNA",
"version": "1.12.3",
"host": "witty",
"ip": "10.1.1.17",
"mac": "XX:XX:XX:XX:XX:XX",
"rssi": "-70",
"uptime": "307",
"datetime": "2018-02-26 21:20:13",
"freeheap": "19760",
"relay/0": "1",
"color": "#FF0000",
"rgb": "#FF0000",
"hsv": "0,100,100",
"brightness": "255",
"channel/0": "255",
"channel/1": "0",
"channel/2": "0",
"time": "2018-02-26 21:20:13",
"id": 3008
} |
These are two different messages, for the analog sensor and the heartbeat. Unless they happen within a time window of 100ms they will be sent separately. Please mind that JSON output does not mean that there will only be one message with all data in it. It just means that close-in-time messages will be grouped in a single message. |
This is staged for release. |
Some problem in #260
device: sonoff pow
firmware: 1.12.3 ( binary from release page )
Settings:
The text was updated successfully, but these errors were encountered: