Go Down

Topic: new sim800 library for MQTT, http and RTC and other... (Read 10596 times) previous topic - next topic

pat1

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

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 :-https://github.com/knolleary/pubsubclient

Any idea what caused the error ?  :smiley-confuse:

Blender

Thanx so much for this library!  :)
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.

dhanishvijayan

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.

nithinkurian


dhanishvijayan

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

masalinas

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

Regards

JordanSilverman

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 :-https://github.com/knolleary/pubsubclient

Any idea what caused the error ?  :smiley-confuse:
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!

Go Up