Closed marcob1281 closed 3 years ago
Hi, we will consider adding this to the next code release, thanks.
I have found a quick solution based on NodeMCU ESP8266. Starting from IoT cloud example, I have created a buffer for each value I want to transfer over MQTT. Then each buffer content is sent to MQTT server using client.publish() function of PubSubClient library (Arduino). It works quite well.
mqtt_readout.py.txt sensor_functions.py.txt
I also wanted to use MQTT, here are some modifications i did to the sensor_functions. and created a mqtt_readout based on the cycle_readout.
Have fun
Hi,
Very nice, thanks for sharing. MQTT is good but is maybe not suitable for all users, that's why we didn't include it.
Regards, Customer support
Metriful Ltd.
admin@metriful.com www.metriful.com
Metriful Ltd is registered in England & Wales. Company Registration Number: 12397348. Registered office address: 27 Old Gloucester Street, London, WC1N 3AX, United Kingdom
From: madcat-nl notifications@github.com Sent: 20 December 2020 21:54 To: metriful/sensor sensor@noreply.github.com Cc: Metriful admin@metriful.com; State change state_change@noreply.github.com Subject: Re: [metriful/sensor] Sending data over MQTT (#10)
mqtt_readout.py.txthttps://github.com/metriful/sensor/files/5721569/mqtt_readout.py.txt sensor_functions.py.txthttps://github.com/metriful/sensor/files/5721571/sensor_functions.py.txt
I also wanted to use MQTT, here are some modifications i did to the sensor_functions. and created a mqtt_readout based on the cycle_readout.
Have fun
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/metriful/sensor/issues/10#issuecomment-748676070, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOKQMDSKBNQTVM4UAYWS23LSVZXB7ANCNFSM4SWVE3HA.
Hi guys Would it be possible to get examples About sending data over MQTT? I have my home iot server running Home Assistant Android I wanted to aggregate data of the sensors there.
Thanks