Skip to content

Polling via REST API leads to outliers in MQTT SENSOR data #23342

Closed Answered by gemu2015
gone-for-coding asked this question in scripter / SML
Discussion options

You must be logged in to vote

form the docs:
M,=so3 sets serial buffer size, serial IRQ buffer size and serial dump buffer size.
thus up to 3 parameters

is is essential that your irq buffer is large enough to fit your meters sml telegram. some meters have very large ones. so try with 1024 or even 1536
since the ESP8266 has only one core and no multitasking this is necessary. on an ESP32 this would be no issue.

IRQ buffer it is not set by the CRC option.
CRC check is an additional option that ensures data integrity. since sml telegrams have only on crc over the complete telegram your crc buffer has to be large enough

this is the correct polling format:
http:///cm?cmnd=script?sml[4]

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@gone-for-coding
Comment options

@sfromis
Comment options

@gemu2015
Comment options

Answer selected by gone-for-coding
@gone-for-coding
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants