mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixed issues in arduino temperature sensor
This commit is contained in:
parent
381b4cc7e1
commit
b03105f50b
@ -31,16 +31,16 @@
|
|||||||
|
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>control bulb</name>
|
<name>control bulb</name>
|
||||||
<path>device-mgt/user/operations</path>
|
<path>/device-mgt/user/operations</path>
|
||||||
<url>/device/*/bulb</url>
|
<url>/device/*/bulb</url>
|
||||||
<method>POST</method>
|
<method>POST</method>
|
||||||
<scope>arduino_user</scope>
|
<scope>arduino_user</scope>
|
||||||
</Permission>
|
</Permission>
|
||||||
<Permission>
|
<Permission>
|
||||||
<name>get controls</name>
|
<name>get controls</name>
|
||||||
<path>device-mgt/user/operations</path>
|
<path>/device-mgt/user/operations</path>
|
||||||
<url>/device/*/controls</url>
|
<url>/device/*/controls</url>
|
||||||
<method>POST</method>
|
<method>GET</method>
|
||||||
<scope>arduino_device</scope>
|
<scope>arduino_device</scope>
|
||||||
</Permission>
|
</Permission>
|
||||||
<Permission>
|
<Permission>
|
||||||
|
|||||||
@ -28,8 +28,6 @@ void readControls() {
|
|||||||
client.fastrprint(F("\n"));
|
client.fastrprint(F("\n"));
|
||||||
client.fastrprint(host.c_str());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("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("\n"));
|
||||||
client.fastrprint(F("protocol: HTTP\n"));
|
client.fastrprint(F("protocol: HTTP\n"));
|
||||||
|
|
||||||
@ -77,6 +75,7 @@ void readControls() {
|
|||||||
digitalWrite(6, LOW);
|
digitalWrite(6, LOW);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
responseMsg = "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user