Giter Site home page Giter Site logo

kudosabhay / arduino_to_thingsboard Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 12.0 7 KB

Send Data via SIM900A / SIM800 - Arduino to Thingsboard IoT platform

Arduino 100.00%
thingsboard rest-api arduino json-parser json-data arduino-mega tcp-client sim900 sim900a sim800

arduino_to_thingsboard's Introduction

Arduino_To_Thingsboard

This is a working code which can send data to thingsboard.io from Arduino Mega 2560.

Harware Used:

  1. Arduino Mega 2560
  2. SIM900A / SIM800

Implementation Done:

  1. Connected SIM900A / SIM800 to Serial1.
  2. Read the output obtained from that over Serial.
  3. TCP is implemented and Data is sent over HTTP request to the thingsboard server

arduino_to_thingsboard's People

Contributors

kudosabhay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino_to_thingsboard's Issues

Looping Issue

Hi,
When I use this program with my Simcom module, I'm getting stuck at the power_on loop and getting the following:

AT SIM ON AT AT AT AT AT AT AT AT AT AT GSM OFF AT SIM ON AT AT AT AT AT AT AT AT AT AT RGSM OFF

getStr always 0

getStr="POST /api/v1/"+ AccessToken +"/telemetry HTTP/1.1\r\nHost: demo.thingsboard.io\r\nAccept: */*\r\nContent-Type: application/json\r\nContent-Length:"+lengthOfJSON+"\r\n\r\n"+json;
//TCP packet to send POST Request on https (Thingsboard)
String sendcmd = "AT+CIPSEND="+ String(getStr.length());
if (sendATcommand2(sendcmd, ">", "ERROR", 10000) == 1)

Hi,
I always get the AT+CIPSEND=0. Everything else works fine. Would appreciate if you can help me out. I'm a newbie.

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.