How to setup mqtt gateway not from predified constants?
-
I'm using esp sketch with web-configured mqtt options. How I can feed it to MS gateway?
-
That would quite a challenge.... What did you had in mind?
-
@Stas-Dovgodko
would that do the job ?#MY_MQTT_DEFINE_I_WANT_VARIABLE myMqttVariable
then use the myMqttVariable in your sketch
-
@gohan Yeah, just rewrote lib a lot of ) For now subscribe working but not publishing. This would be configurable (just like sonoff for example) gateway with wifi-portal (ap) and configurable wifi/mqtt options from web interface
-
@scalz No. But this in mysensor lib does :
extern PubSubClient MQTTClient; extern WiFiClient wclient;