All Projects → tuanpmt → ESP8266MQTTClient

tuanpmt / ESP8266MQTTClient

Licence: Apache-2.0 license
No description or website provided.

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to ESP8266MQTTClient

ESP-CoAP
This repo contains CoAP protocol for ESP-12E
Stars: ✭ 70 (-9.09%)
Mutual labels:  arduino-library
arduino-capacitor
Capacitance measurement library for Arduino
Stars: ✭ 19 (-75.32%)
Mutual labels:  arduino-library
TLV493D-A1B6-3DMagnetic-Sensor
Library for the TLV493D-A1B6 3D magnetic sensor for Arduino.
Stars: ✭ 27 (-64.94%)
Mutual labels:  arduino-library
G-Code-Arduino-Library
Allows any machines and robots to be controlled by G-Code
Stars: ✭ 44 (-42.86%)
Mutual labels:  arduino-library
DFPlayerMini Fast
Fast and easy to understand Arduino library to use the DFPlayer Mini MP3 module from DFRobot.com. This is a huge improvement (both in terms of execution speed and simplicity) to the standard library provided by DFRobot.com.
Stars: ✭ 164 (+112.99%)
Mutual labels:  arduino-library
Syslog
An Arduino library for logging to Syslog server in IETF format (RFC 5424) and BSD format (RFC 3164)
Stars: ✭ 105 (+36.36%)
Mutual labels:  arduino-library
arduino-id-guard
Tiny library to avoid deploying your sketch to wrong device.
Stars: ✭ 21 (-72.73%)
Mutual labels:  arduino-library
Adafruit SI1145 Library
Arduino library for the SI1145 sensors in the Adafruit shop
Stars: ✭ 20 (-74.03%)
Mutual labels:  arduino-library
SparkFun ATECCX08a Arduino Library
An Arduino library to use with the Microchip ATECCX08a Cryptographic Co-processors.
Stars: ✭ 26 (-66.23%)
Mutual labels:  arduino-library
Adafruit-SSD1331-OLED-Driver-Library-for-Arduino
For 0.96" OLEDs in the Adafruit shop
Stars: ✭ 94 (+22.08%)
Mutual labels:  arduino-library
MCP79412RTC
Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar
Stars: ✭ 20 (-74.03%)
Mutual labels:  arduino-library
SimpleStepper
A bare minimum but really fast and simple stepper library for Arduino.
Stars: ✭ 21 (-72.73%)
Mutual labels:  arduino-library
PsxNewLib
Playstation controller interface library for Arduino
Stars: ✭ 81 (+5.19%)
Mutual labels:  arduino-library
Adafruit MCP3008
MCP3008 8-Channel 10-Bit ADC
Stars: ✭ 22 (-71.43%)
Mutual labels:  arduino-library
ESP32Time
An Arduino library for setting and retrieving internal RTC time on ESP32 boards
Stars: ✭ 120 (+55.84%)
Mutual labels:  arduino-library
Adafruit TLC59711
Arduino library for TLC59711
Stars: ✭ 20 (-74.03%)
Mutual labels:  arduino-library
ATM90E32
Updated version of the ATM90E32 Arduino library
Stars: ✭ 22 (-71.43%)
Mutual labels:  arduino-library
Adafruit MP3
mp3 decoding on arduino
Stars: ✭ 29 (-62.34%)
Mutual labels:  arduino-library
SoftWire
Software I2C implementation for Arduino and other Wiring-type environments
Stars: ✭ 105 (+36.36%)
Mutual labels:  arduino-library
FastX9CXXX
Arduino library for digital potentiometers X9C102, X9C103, X9C104 and X9C504
Stars: ✭ 36 (-53.25%)
Mutual labels:  arduino-library

MQTT Client library for ESP8266 Arduino

This is MQTT client library for ESP8266, using mqtt_msg package from MQTT client library for Contiki and use for ESP8266 NON-OS SDK esp_mqtt

Features:

  • Support subscribing, publishing, authentication, will messages, keep alive pings and all 3 QoS levels (it should be a fully functional client).

Requirements

  • ESP8266WiFi
  • WiFiClientSecure

Status

  • Support 3 type of qos (0, 1, 2) and outbox
  • only mqtt over TCP

MQTT URI Scheme

  • mqtt://[username][:password@]hostname[:port][#clientId]
    • mqtt for MQTT over TCP
    • ws for MQTT over Websocket
  • Example:
    • Full mqtt://username:[email protected]:1883#my_client_id
    • Websocket ws://username:[email protected]:1883/mqtt#my_client_id
    • Minimal mqtt://test.mosquitto.org, with user, pass = NULL, port = 1883, client id = "ESP_" + ESP.getChipId()

API

Setup

  • bool begin(String uri);
  • bool begin(String uri, int keepalive, bool clean_session);
  • bool begin(String uri, LwtOptions lwt);
  • bool begin(String uri, LwtOptions lwt, int keepalive, bool clean_session)

Events

  • void onConnect(THandlerFunction fn);
  • void onDisconnect(THandlerFunction fn);
  • void onSubscribe(THandlerFunction_PubSub fn);
  • void onPublish(THandlerFunction_PubSub fn);
  • void onData(THandlerFunction_Data fn);

Pub/Sub

  • int subscribe(String topic);
  • int subscribe(String topic, uint8_t qos);
  • int publish(String topic, String data);
  • int publish(String topic, String data, int qos, int retain);

License

Copyright (c) 2016 Tuan PM (https://twitter.com/tuanpmt) ESP8266 port (c) 2016 Ivan Grokhotkov ([email protected])

License Apache License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].