kopia lustrzana https://github.com/martin-ger/uMQTTBroker
Recommend lwip 1.4 (see #12 )
rodzic
15d3efbf8f
commit
5e1431c406
|
@ -3,6 +3,10 @@ MQTT Broker library for ESP8266 Arduino
|
|||
|
||||
You can start an MQTT broker in any ESP Arduino project. Just clone (or download the zip-file and extract it) into the libraries directory of your Arduino ESP8266 installation.
|
||||
|
||||
**Important: Use the setting "lwip Variant: 1.4 High Bandwidth" in the "Tools" menu**
|
||||
|
||||
lwip 2.0 has some strange behaviour that causes the socket to block after 5 connections.
|
||||
|
||||
Thanks to Tuan PM for sharing his MQTT client library https://github.com/tuanpmt/esp_mqtt as a basis with us. The modified code still contains the complete client functionality from the original esp_mqtt lib, but it has been extended by the basic broker service.
|
||||
|
||||
The broker does support:
|
||||
|
@ -41,6 +45,7 @@ bool MQTT_local_publish(uint8_t* topic, uint8_t* data, uint16_t data_length, uin
|
|||
bool MQTT_local_subscribe(uint8_t* topic, uint8_t qos);
|
||||
bool MQTT_local_unsubscribe(uint8_t* topic);
|
||||
|
||||
|
||||
void MQTT_server_onData(MqttDataCallback dataCb);
|
||||
```
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue