alexCajas / EmbeddedMqttBroker

This is a Mqtt broker for embedded devices, developed in C++, FreeRTOS to use advanced multitasking capabilities, and arduino core. Tested in an Esp32 and esp8266.
https://github.com/alexCajas/EmbeddedMqttBroker
MIT License
71 stars 14 forks source link

Access Point Example #11

Closed steveasm closed 1 year ago

steveasm commented 1 year ago

Would it be possible to show an example of this running on an ESP32 which is also running a soft access point? Thinking an ultraportable AP and MQTT broker for IoT demos.

steveasm commented 1 year ago

// sets up a soft Access Point (no internet connection) // and runs the MQTT broker on that access point

include

include "EmbeddedMqttBroker.h"

using namespace mqttBrokerName;

const char soft_ap_ssid = "MyNetwork"; const char soft_ap_password = "MyPassword";

/*** mqtt broker ****/ uint16_t mqttPort = 1883; MqttBroker broker(mqttPort);

void setup(){

/**

}

void loop(){

}