Skip to content

Commit

Permalink
fake info needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadhyGit committed Oct 1, 2023
1 parent 6ae724e commit 6c8059c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/awox_mesh/mesh_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,19 @@ void MeshDevice::handle_packet(std::string &packet) {

} else if (static_cast<unsigned char>(packet[7]) == COMMAND_GROUP_INFO_RESP) {
mesh_id = (static_cast<unsigned char>(packet[10]) | 0x8000);
mode = static_cast<unsigned char>(packet[12]);
online = 1;
// All fake info...
state = 1;
color_mode = 0;
transition_mode = 0;

white_brightness = 100;
temperature = 100;
color_brightness = 0;
R = 0;
G = 0;
B = 0;

Device *device = this->get_device(mesh_id);
ESP_LOGD(TAG, "Checking if discovered");
Expand Down

0 comments on commit 6c8059c

Please sign in to comment.