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.

  • Mod

    @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.

Log in to reply

Suggested Topics

  • 1
  • 3
  • 4
  • 5
  • 9
  • 9