Skip to content

BLE Retrieve device info & Retrieve settings #440

Closed Answered by syssi
jaqkar asked this question in Q&A
Discussion options

You must be logged in to vote

These are button entities. If you send the payload PRESS to the command topic the device info frame or settings frame gets requsted. The decoder of the device info frame just prints some messages into the log:

  ESP_LOGI(TAG, "  Vendor ID: %s", std::string(data.begin() + 6, data.begin() + 6 + 16).c_str());
  ESP_LOGI(TAG, "  Hardware version: %s", std::string(data.begin() + 22, data.begin() + 22 + 8).c_str());
  ESP_LOGI(TAG, "  Software version: %s", std::string(data.begin() + 30, data.begin() + 30 + 8).c_str());
  ESP_LOGI(TAG, "  Uptime: %d s", jk_get_32bit(38));
  ESP_LOGI(TAG, "  Power on count: %d", jk_get_32bit(42));
  ESP_LOGI(TAG, "  Device name: %s", std::string(data.begin() + 4…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jaqkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants