Questions tagged [rest-api]

For questions regarding the use of REST (Representational State Transfer) in an IoT context.

As described on Stack Overflow, REST (REpresentational State Transfer) is an architectural style that uses identification of resources; manipulation of resources through representations; self-descriptive messages; and, hypermedia as the engine of application state, to build distributed systems that are scalable and resilient to change.

15 questions
46
votes
13 answers

Are there any smart electrical plugs with an open API?

My friend and I are in a university and we have been asked by the agriculture professor to create automated watering systems for plants. We want to have control over the grow lights so are there any commercial product that has an API that I can turn…
Trevin Corkery
  • 563
  • 1
  • 4
  • 4
8
votes
1 answer

How to pass two parameters in header using AT Command with SIM800 GSM modem?

I have a restful webservice with POST method. I want to use this webservice using a GSM Modem with SIM800. I am using following command instruction: AT+SAPBR=2,1 --Check if bearer 1 is open or not AT+SAPBR=1,1 --Enable bearer…
Rudra
  • 181
  • 4
8
votes
1 answer

Does AWS Mobile SDK for Android gives capabilities to call AWS IoT REST APIs?

I thought of writing an WebApp to control my Android Phone. What I'm intended to do is My WebApp will call the REST APIs of AWS IoT and send some commands. Using AWS rules engine I store those command data into a database and the same time send a…
Archibald
  • 929
  • 1
  • 6
  • 10
7
votes
2 answers

Upload measurements with unix script ( RESTful API?)

A thermostat device returns JSON like data from the command line: curl -s http://192.168.X.Y/tstat/humidity {"humidity":51.00} It would be interesting to setup a UNIX cron job to periodically script the upload of the data to a host so that it can…
gatorback
  • 381
  • 1
  • 5
6
votes
2 answers

How to make a MQTT Broker and a REST API communicate?

I'm still very new to IoT and IoT protocols, so pardon my ignorance. I'm trying to go about creating a home automation system to control lights, read room temperatures etc. The user should be able to interact with the IoT devices via a mobile client…
hcotta
  • 171
  • 1
  • 1
  • 5
6
votes
3 answers

Multiple agents authentication to MQTT

I am building a small IoT platform. I have a webapp reading data from MongoDB. There is a worker that reads from MQTT and stores the data to mongo. Until here, all good. I want to be able to ship an agent to whatever device, be it a RaspberryPi or…
user6334
4
votes
1 answer

RESTapi and MQTT Broker

Question: What I'm trying to do is to get the REST API to be able to publish to my Mosquitto MQTT Broker (which is also hosted on my Pi on Port 1883) via IFTTT Webhook. Context I've built a webapp using ASP.NET Core and it is being hosted on my…
Eric Lim
  • 161
  • 1
  • 8
4
votes
1 answer

Recommendation to choose API development open source Language, Framework and Database

I'm working in a IoT project and my role is to provide APIs to allow devices to communicate with server/database. I have decided to use MySql for relational data like user details etc.. and MongoDb for other data like device data (Multi tenant…
Shri
  • 341
  • 1
  • 10
3
votes
1 answer

Real-time web-app for IOT devices

Goal I'm currently building a web application to control multiple IOT devices over the cellular network. Given the nature of the devices (working off battery power and operating in constrained network environments) I have chosen HiveMQ as the means…
Edmond.D
  • 31
  • 1
3
votes
2 answers

How do smart plugs of domotic IoT work?

I was wondering how smart plugs work, how they can be controlled and how secure they are. Since they are part of your local network and since they can be controlled remotely even from another network I am expecting they have have some…
Francesco Boi
  • 541
  • 3
  • 12
2
votes
3 answers

Advise on device to use when tracking a moving vehicle and pushing data to an API

I need to determine when a van leaves or enters a geofence range, and alert a system on my side - either via an API call or email sent - so that I can digest that data for later. My blocker is finding such a device that will work with my…
Zach Smith
  • 123
  • 3
2
votes
1 answer

Thingspeak API Limit GET Requests?

Is there a GET request rate limit for the Thingspeak API? So far I've only been able to find information about POST requests. I have a data acquisition R script that I would like to run in parallel. I'm pausing ~1-second between each request…
1
vote
1 answer

How to call an API using a smart button?

I want to do a simple thing: Give away buttons to my friends that they can click randomly and it simply calls an API that I have implemented. I cannot wrap my head around what should I do and what is the cheapest option. So far I have found Flic…
Ashkan S
  • 165
  • 1
  • 5
0
votes
1 answer

Queries regarding send data to adafruit.io rest api using http post using Alexa skills

I have a custom ESP8266 & Arduino based home automation system that is subscribed to a MQTT topic & turns on/off multiple relays or adjusts fan speed. The data format in that feed is for example 1_1_1 (RoomNo_LoadNo_On/OFF)command For Example: If…
S.Das
  • 1
0
votes
0 answers

Communicate with a smart plug from my own JSON server directely

I am new to the field of IoT, I am very grateful for your help. My goal is to turn on/off and obtain the state a smart plug via my own JSON server not using its manufacturer's API. Please if you have any suggestion of a smart plug that I can add or…
Jean
  • 1