on 04-17-2016 5:09 AM
Hello,
I am trying to call the SetDigitalOutput function for an Arduino Uno microcontroller that has an Arduino Ethernet shield. I am able to call this function from the Teleduino website. If I have to call the function I use the below URL.
https://us01.proxy.teleduino.org/api/1.0/328.php?k=<key for my Arduino Uno>&r=setDigitalOutput&pin=3&output=1&expire_time=0&save=1
Using the above URL I can set a value of 1 to a digital pin 3 on the microcontroller.
Now, what I am trying to figure out is how I can call the SetDigitalOutput function from the Hana Cloud Platform (hcp) IOT services. In the MMS cockpit when I paste the above URL and paste it as shown below in the screenshot it doesn't do anything to my Arduino
Is there a lot to be done yet? My main concern is that the Teleduino URL appears to be a https Get command while all the MMS messaging technique appear to be sending messages through the Post command.
Comments welcome.
Regards
Bala
Hello Bala, let's elaborate it a bit.
What you want, is to send a message to your device (Arduino Uno in your case), right?
What you did, is that you used Teleduino Platform [1] and its setDigitalOutput API [2] (which is a HTTP GET endpoint which you may call and set query parameters i.e "pin", "output" etc) to send a message to Arduino.
If yo want to send a message to your device with the HCP IoT Services, you will have to use its Push API. Please, see official documentation here [3]
It might be also helpful to explore different examples from the IoT Starter Kit on GitHub [4] and especially Arduino scripts to send the messages from the device as well as push the message to the device [5] (ESP8266 controller was taken there as an example hardware).
Regards,
Anton
[1] Arduino Internet / Web Control with Teleduino
[2] Arduino Internet / Web Control with Teleduino
[3] SAP HANA Cloud Platform Internet of Things (IoT) Services
[5] iot-starterkit/src/hardware/ESP8266/Arduino at master · SAP/iot-starterkit · GitHub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.