martin_g wrote:Walter, thank for these measurements - I haven't done any performance tests so far, just functional tests, so this is a valuable info!
For those of you, that don't like the NONOS SDK, I now added the local client calls to the Arduino API, i.e. withCode: Select allbool MQTT_local_publish(uint8_t* topic, uint8_t* data, uint16_t data_length, uint8_t qos, uint8_t retain);
bool MQTT_local_subscribe(uint8_t* topic, uint8_t qos);
bool MQTT_local_unsubscribe(uint8_t* topic);
void MQTT_server_onData(MqttDataCallback dataCb);
void MQTT_server_onAuth(MqttAuthCallback authCb);
you can now locally interact with the broker from your sketch without the need of TCP connection or an additional pubsub-library. Detail can be found here https://github.com/martin-ger/esp_mqtt#using-the-esp_umqtt_broker-in-an-arduino-project
Dear Martin ,
Thank you very much for this valuable work ,
As you know the most important part of IOT is its security ,
My question is about MQTT username and password and SSL connection to esp-broker ,
I'm using Arduino source code and I didn't get how to add a username and password in the ESP broker and connect to it using MQTT-Client ,
I will appreciate if you add an example about adding username and password in the sketch and use it on mqtt-client ,
Regards , Mike