Support building fetch position packets

This commit is contained in:
2023-12-15 22:39:52 +11:00
parent f41e0edf56
commit 18639220b8
3 changed files with 29 additions and 8 deletions

View File

@@ -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);
});