Giter VIP home page Giter VIP logo

mqtt-for-waspmote-3g-module's Introduction

MQTT-for-waspmote-3G-module

An MQTT library for Waspmote's 3G Module

  • For each example you have to add the library files (.cpp and .h files) in the same directory. Alternatively, you can add MQTT library into Waspmote API and call it like (#include <lib_name.h>) instead of (#include "lib_name.h")

mqtt-for-waspmote-3g-module's People

Contributors

glrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mqtt-for-waspmote-3g-module's Issues

Broker Fault Response

I am trying to execute LED_ON-OFF_Example.pde but I get an "Broker Fault Response":

�J#
> USB port started.

> Opening 3G module... 			Done.
> Connect 3G module to network... 	Done.
> Setting connection... 		Done.
> Opening TCP socket... 		Done.


> Data type other than IP data. Ignored.
Broker Fault Response:
Message Length: 0
packetBuffer[0]: 0
packetBuffer[1]: 0
packetBuffer[2]: 0
packetBuffer[3]: 10
Unable to connect to network.

I tested that the connect-packet is reaching the server and the server respondes with a prober connack-packet which looks like this:

[32,2,0,0]

in dec or

0x20 0x2 0x0 0x0

in hex.

From the error message I guess the waspmote doesn't get this package.

BUFFER_SIZE not declared

/opt/waspmote-pro-ide-v06.11/libraries/WaspMQTT/WaspMQTTClient.cpp: In function 'int parse(const char*)':
/opt/waspmote-pro-ide-v06.11/libraries/WaspMQTT/WaspMQTTClient.cpp:688:18: error: 'BUFFER_SIZE' was not declared in this scope
while(count1 < BUFFER_SIZE){
^
exit status 1
Error compiling for board Waspmote API v037

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.