This commit is contained in:
2024-12-25 03:32:26 -05:00
parent 1d16119e52
commit 1b5b66b3b3
17 changed files with 11197 additions and 11043 deletions

View File

@@ -160,9 +160,11 @@ void example_espnow_data_prepare(example_espnow_send_param_t *send_param)
//memcpy(buf->payload, (uint8_t)16, send_param->len - sizeof(example_espnow_data_t));
//memcpy(buf->payload[0], (uint8_t)12, send_param->len - sizeof(example_espnow_data_t));
//memcpy(buf->payload[0], 12, send_param->len - sizeof(example_espnow_data_t));
buf->payload[0] = (uint8_t)5;
buf->payload[0] = (uint8_t)12;
buf->payload[1] = (uint8_t)10;
ESP_LOGW(TAG, "Payload: %x", (uint8_t)buf->payload);
ESP_LOGW(TAG, "Saved value: %x", (uint8_t)buf->payload[0]);
ESP_LOGW(TAG, "payload[0]: %x", (uint8_t)buf->payload[0]);
ESP_LOGW(TAG, "payload[1]: %x", (uint8_t)buf->payload[1]);
buf->crc = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, send_param->len);
}