wso2 / product-iots

Welcome to the WSO2 IoT Server source code! For info on working with the WSO2 IoT Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
184 stars 181 forks source link

[IOTS-225] [Sample] Temperature data for arduino not populated on graph #703

Open madhawap opened 7 years ago

madhawap commented 7 years ago

The graph does not seem to be plotting the temperature data for the arduino sample.

 curl -X POST -H "Authorization: Bearer 40ea938199e335a3f4d43c44320147cc" -H "Content-Type: application/json" -H "Accept: application/json" -d @httprecpayloadtemplate.json http://localhost:9763/endpoints/arduino_receiver?deviceId=sksdbbxk2wc2 -i HTTP/1.1 200 OK Set-Cookie: JSESSIONID=DD5AF8BF55EE319C548064B54DE753A2; Path=/; Secure; HttpOnly Content-Type: text/html;charset=UTF-8 Content-Length: 0 Date: Fri, 10 Jun 2016 06:37:10 GMT Server: WSO2 Carbon Server 

{"event":{"metaData":

{"owner":"admin","deviceId":"1iauvrtakdl5x"}

,"payloadData":

{"temperature":20.22}

}}

 

Reference: https://wso2.org/jira/browse/IOTS-225

tonny1983 commented 7 years ago

I got the same problem using arduino but the http respone from arduino is different of using curl.

REQUEST: POST /endpoints/arduino_receiver?deviceId=1ib3q6v56fewo HTTP/1.1 Host: 192.168.1.7:9763 Content-Type: application/json Content-Length: 104 {"event":{"metaData":{"owner":"admin","deviceId":"1ib3q6v56fewo"}, "payloadData":{"temperature":30.89}}}

RESPONSE: HTTP/1.1 302 Found X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Set-Cookie: JSESSIONID=B42A8CBB45B73E23606CB8CA809DF06B; Path=/; Secure; HttpOnly Location: https://192.168.1.7:9443/carbon/ Content-Type: text/html;charset=UTF-8 Content-Length: 0 Date: Sat, 01 Jul 2017 07:49:19 GMT Server: WSO2 Carbon Server

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.