Fixed issues in arduino temperature sensor

revert-dabc3590
mharindu 9 years ago
parent 381b4cc7e1
commit b03105f50b

@ -31,16 +31,16 @@
<Permission>
<name>control bulb</name>
<path>device-mgt/user/operations</path>
<path>/device-mgt/user/operations</path>
<url>/device/*/bulb</url>
<method>POST</method>
<scope>arduino_user</scope>
</Permission>
<Permission>
<name>get controls</name>
<path>device-mgt/user/operations</path>
<path>/device-mgt/user/operations</path>
<url>/device/*/controls</url>
<method>POST</method>
<method>GET</method>
<scope>arduino_device</scope>
</Permission>
<Permission>

@ -28,8 +28,6 @@ void readControls() {
client.fastrprint(F("\n"));
client.fastrprint(host.c_str());client.fastrprint(F("\n"));
client.fastrprint(F("Authorization: Bearer ")); client.fastrprint(F(DEVICE_TOKEN)); client.fastrprint(F("\n"));
client.fastrprint(F("Content-Type: application/json")); client.fastrprint(F("\n"));
client.fastrprint(F("Accept: application/json")); client.fastrprint(F("\n"));
client.fastrprint(F("\n"));
client.fastrprint(F("protocol: HTTP\n"));
@ -77,6 +75,7 @@ void readControls() {
digitalWrite(6, LOW);
}
responseMsg = "";
}

Loading…
Cancel
Save