mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-01 23:58:36 +00:00
16 lines
497 B
C
16 lines
497 B
C
#include "freertos/FreeRTOS.h"
|
|
#include "common.h"
|
|
#include "esp_mac.h"
|
|
|
|
//extern static sensors_data_t *buf;
|
|
//extern static sensors_data_t *buffer;
|
|
|
|
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
|
|
|
|
//memcpy(buf, data, data_len);
|
|
/*buf = (sensors_data_t*)data;
|
|
ESP_LOGW(TAG, "Data was received");
|
|
ESP_LOGI(TAG, "x-axis: 0x%04x", buf->x_axis);
|
|
ESP_LOGI(TAG, "x-axis: 0x%04x", buf->y_axis);
|
|
ESP_LOGI(TAG, "PCM 1: 0x%04x", buf->motor1_rpm_pcm);*/
|
|
} |