new sim800 library for MQTT, http and RTC and other...

This for take in evidence e new library for sim800/sim900.that do thinks that other libraries don't do.

This library implements:

  • True http through sim800/sim900 at command
  • Transparent tcp
  • EthernetClient api implemented with sim800Client
  • sim800/sim900 RTC management

https://github.com/r-map/rmap/tree/master/arduino/sketchbook/libraries/sim800

take a look at examples https://github.com/r-map/rmap/tree/master/arduino/sketchbook/libraries/sim800/examples

so with this patched PubSubClient library
https://github.com/r-map/rmap/tree/master/arduino/sketchbook/libraries/PubSubClient
and those define in PubSubClient.h

// if use sim800 client
#include "sim800Client.h"
#define TCPCLIENT sim800Client
// if use arduino_uip or etherclient
//#include "Client.h"
//#include "Stream.h"
//#define TCPCLIENT Client

You can publish and subscribe to a MQTT broker.

Paolo Patruno

Tried the example and got error that said

"no matching function for call to 'PubSubClient::PubSubClient(char [8], int, void (&)(char*, byte*, unsigned int), sim800Client&)'"

Currently using IDE 1.6.3 for testing. PubSubClient.h obtained from here :-GitHub - knolleary/pubsubclient: A client library for the Arduino Ethernet Shield that provides support for MQTT.

Any idea what caused the error ? :confused:

Thanx so much for this library! :slight_smile:
I've adapted it for a custom board with 2560 chip and SIM928.
Works first time.

Now I just have to figure out timeouts and add a bit of error checking.

If you have any pointers or words of wisdom, that would be highly appreciated.

You may use SIM800 MQTT library from this link released by Elementz Tech Team. You can download the code.

The library uses hardware serial of Arduino board. Complete MQTT v3.1 stack implemented.

Whether this library supports subsription

Yes it supports subscription and publishing with QoS 0,1 and 2

Somebody knows what I must to do for use the rmap-sim800 for mqtt in the card Seeeduino GPRS??

Regards

satay:
Tried the example and got error that said

"no matching function for call to 'PubSubClient::PubSubClient(char [8], int, void (&)(char*, byte*, unsigned int), sim800Client&)'"

Currently using IDE 1.6.3 for testing. PubSubClient.h obtained from here :-GitHub - knolleary/pubsubclient: A client library for the Arduino Ethernet Shield that provides support for MQTT.

Any idea what caused the error ? :confused:

I am also getting this error, has someone figured out a solution? This library looks perfect for my needs, just need to get rid of a few of the errors.

Thanks!