Support building fetch position packets
This commit is contained in:
@@ -173,7 +173,7 @@ void onConnectionEstablished() {
|
||||
client.subscribe("hotdog/test_mqtt_blind/set_position", [] (const String &payload) {
|
||||
uint16_t shadeID = 0x4EF1;
|
||||
float percentage = payload.toInt() / 100.0f;
|
||||
hubPacketBuilder.buildPositionPacket(buffer, shadeID, percentage);
|
||||
hubPacketBuilder.buildSetPositionPacket(buffer, shadeID, percentage);
|
||||
sendCommand(buffer);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user