mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-11-26 22:32:59 +00:00
manual
This commit is contained in:
@@ -28,7 +28,7 @@ Configuration Variables
|
||||
int motor4_rpm_pwm;
|
||||
};
|
||||
|
||||
Receiving & De-Ecapsulating Data
|
||||
Receiving & Extracting Data
|
||||
--------------------------------
|
||||
|
||||
.. code-block:: c
|
||||
@@ -68,10 +68,12 @@ Main Function
|
||||
|
||||
// Initialize NVS
|
||||
esp_err_t ret = nvs_flash_init();
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
if (ret == ESP_ERR_NVS_NO_FREE_PAGES ||
|
||||
ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||
ESP_ERROR_CHECK( nvs_flash_erase() );
|
||||
ret = nvs_flash_init();
|
||||
}
|
||||
|
||||
ESP_ERROR_CHECK( ret );
|
||||
wifi_init();
|
||||
ESP_ERROR_CHECK(esp_now_init());
|
||||
|
||||
@@ -19,6 +19,9 @@ Configuration Variables
|
||||
uint8_t motor4_rpm_pwm;
|
||||
} __attribute__((packed)) sensors_data_t;
|
||||
|
||||
Reading Joystick x- and y- Axis Values
|
||||
--------------------------------------
|
||||
|
||||
Sending & Ecapsulating Data
|
||||
----------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user