Gateway MQTT first launch
-
Hello,
I developed a library that allows you to modify and store the parameters of the #define sketches in eeprom when launching a module. Thus no need for IDE, compilation and upload.
It works well with all nodes but with an MQTT gateway it is waiting to find the MQTT broker to start the program.
But the first time, the parameters are, of course, not entered.
An idea to work around this problem?
Thank you.
-
@miclane use dns and a convention for naming the broker like mysensors-mqtt.local?
-
Thank you for the idea.
I try and I will do a report.But is there a way to start the sketch after a delay even if the gateway does not find the broker.
I understand that this is not very interesting .... except for my library.
With a node, it is possible to start the sketch after a delay with the parameter MY_TRANSPORT_WAIT_READY_MS.Thank you.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Blink on nodeMCU / RFM69 gateway
Hardware • 7 Oct 2018, 18:06 • rmh 8 Oct 2018, 09:02 -
Node-red msg queue form Controller to Gateway over MQTT
Development • 16 Sept 2020, 07:43 • alexelite 16 Sept 2020, 07:43 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 7 days ago -
Is it possible to extract child ID from a just sent message?
General Discussion • 8 Nov 2021, 09:21 • Nigel31 6 days ago -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 11 days ago