mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 10:30:54 +00:00
temp sensor
This commit is contained in:
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
ref: refs/heads/main
|
4c2820d377d1375e787bcef612f0c32c1427d183
|
||||||
|
@@ -18,7 +18,7 @@ set(HEAD_HASH)
|
|||||||
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP32-IDF_ESPNOW-Transmitter/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
|
||||||
|
|
||||||
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
|
||||||
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
|
set(GIT_DIR "/home/abobkov/esp/v5.4.1/esp-idf/.git")
|
||||||
# handle git-worktree
|
# handle git-worktree
|
||||||
if(EXISTS "${GIT_DIR}/commondir")
|
if(EXISTS "${GIT_DIR}/commondir")
|
||||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
||||||
|
@@ -1 +1 @@
|
|||||||
7ef5ac573fd23845a429b621ce7757243e2874f3
|
4c2820d377d1375e787bcef612f0c32c1427d183
|
||||||
|
@@ -55,14 +55,14 @@ void get_joystick_xy(int *x_axis, int *y_axis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Function to delete peer (i.e. when communication error occurs)
|
// Function to delete peer (i.e. when communication error occurs)
|
||||||
void deletePeer (void)
|
static void deletePeer (void)
|
||||||
{
|
{
|
||||||
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
||||||
if (delStatus != 0) {
|
if (delStatus != 0) {
|
||||||
ESP_LOGE(TAG, "Could not delete peer");
|
ESP_LOGE(TAG, "Could not delete peer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void sendData (void)
|
static void sendData (void)
|
||||||
{
|
{
|
||||||
buffer.crc = 0;
|
buffer.crc = 0;
|
||||||
buffer.x_axis = 240;
|
buffer.x_axis = 240;
|
||||||
@@ -107,7 +107,7 @@ void joystick_task(void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status)
|
static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status)
|
||||||
{
|
{
|
||||||
if (status == ESP_NOW_SEND_SUCCESS) {
|
if (status == ESP_NOW_SEND_SUCCESS) {
|
||||||
ESP_LOGI(TAG, "Data sent successfully to: %02X:%02X:%02X:%02X:%02X:%02X",
|
ESP_LOGI(TAG, "Data sent successfully to: %02X:%02X:%02X:%02X:%02X:%02X",
|
||||||
|
@@ -13,10 +13,10 @@ void transmission_init();
|
|||||||
esp_err_t joystick_adc_init(void);
|
esp_err_t joystick_adc_init(void);
|
||||||
void joystick_show_raw_xy();
|
void joystick_show_raw_xy();
|
||||||
void get_joystick_xy(int *x_axis, int *y_axis);
|
void get_joystick_xy(int *x_axis, int *y_axis);
|
||||||
void sendData (void);
|
static void sendData (void);
|
||||||
void deletePeer (void);
|
static void deletePeer (void);
|
||||||
void joystick_task(void *arg);
|
void joystick_task(void *arg);
|
||||||
void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status);
|
static void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status);
|
||||||
void rc_send_data_task();
|
void rc_send_data_task();
|
||||||
|
|
||||||
#endif
|
#endif
|
Reference in New Issue
Block a user