mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 11:10:53 +00:00
ESP-NOW Transmitter
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)
|
||||
|
||||
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
|
||||
if(EXISTS "${GIT_DIR}/commondir")
|
||||
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)
|
||||
|
@@ -1 +1 @@
|
||||
5405430d9b84c165045221d6cedf4dc53b7be5f7
|
||||
4c2820d377d1375e787bcef612f0c32c1427d183
|
||||
|
@@ -50,13 +50,7 @@ void joystick_task(void *arg) {
|
||||
}
|
||||
}
|
||||
|
||||
// Function to delete peer (i.e. when communication error occurs)
|
||||
void deletePeer (void) {
|
||||
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
||||
if (delStatus != 0) {
|
||||
ESP_LOGE("ESP-NOW", "Could not delete peer");
|
||||
}
|
||||
}
|
||||
|
||||
void statusDataSend(const uint8_t *mac_addr, esp_now_send_status_t status) {
|
||||
if (status == ESP_NOW_SEND_SUCCESS) {
|
||||
ESP_LOGI(TAG, "Data sent successfully to: %02X:%02X:%02X:%02X:%02X:%02X",
|
||||
|
@@ -40,6 +40,13 @@ void get_joystick_xy(int *x_axis, int *y_axis) {
|
||||
ESP_ERROR_CHECK(adc_oneshot_read(adc_xy_handle, ADC_CHANNEL_1, y_axis));
|
||||
}
|
||||
|
||||
// Function to delete peer (i.e. when communication error occurs)
|
||||
void deletePeer (void) {
|
||||
uint8_t delStatus = esp_now_del_peer(receiver_mac);
|
||||
if (delStatus != 0) {
|
||||
ESP_LOGE("ESP-NOW", "Could not delete peer");
|
||||
}
|
||||
}
|
||||
void sendData (void)
|
||||
{
|
||||
buffer.crc = 0;
|
||||
|
Reference in New Issue
Block a user