Wio Link Problem

Simplify IoT Development.

Moderators: lily.li, violet, seth.welday

Post Reply
ischonfeld
Pre-kindergarten
Pre-kindergarten
Posts: 8
Joined: Thu Oct 02, 2014 1:27 am

Wio Link Problem

Post by ischonfeld » Fri Mar 25, 2016 7:42 am

Hi,

I have my Wio Link up and running from the Android Phone app. For example. I have an LED on Digital0, Buzzer on Digital1 and temp/humidity sensor on Digital2. I can turn the LED and Buzzer on/off from my phone using the API screen, and get Temp and Humidity on the phone too. But if I try this from my computer:

curl –H “Authorization: token xxxxxxxx..xxx” https://iot.seeed.cc/v1/node/GroveTempHum/humidity?

It returns

<”error”: “METHOD NOT FOUND WHEN CHECK ARGS”>

Same if I try to turn the LED on/off or the Buzzer on/off (with 0 or 1 as the value. I have tried with and without the ? at the end.

Same if I try from a browser.

What is wrong with the command?

Note that xxxxxxx.xxx is my correct string, since if I don’t have the right string it says I have a bad node token.

yexiaobo
Pre-kindergarten
Pre-kindergarten
Posts: 46
Joined: Tue Dec 11, 2012 10:53 am

Re: Wio Link Problem

Post by yexiaobo » Wed Apr 13, 2016 5:26 pm

Normally, you will get the API URL in App like this:

Code: Select all

https://iot.seeed.cc/v1/node/GroveTempHumD0/humidity?access_token=962a6d7dca54bc4cbf01b9fc92bb49cc
If you wanna accessing Wio Link and Grove in terminal, the commend should be like this:

Code: Select all

curl -H "Authorization: token 962a6d7dca54bc4cbf01b9fc92bb49cc" https://iot.seeed.cc/v1/node/GroveTempHumD0/humidity
Not include the "?" character.

Reference: http://iot.seeed.cc/getting_started.html

Post Reply