You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **<device_name>**: Bluetooth LE OTA device name. Maximum length: 29 bytes. The default name is "ESP-C919".
3606
+
3607
+
Notes
3608
+
^^^^^
3609
+
3610
+
- If you need to set the Bluetooth LE OTA device name, please set it before running :ref:`AT+BLEOTA=1 <cmd-BLEOTA>`. Otherwise, it will use the default name ``ESP-C919``.
3611
+
3612
+
Example
3613
+
^^^^^^^^
3614
+
3615
+
::
3616
+
3617
+
AT+BLEOTANAME="NAME"
3618
+
AT+BLEOTANAME?
3619
+
3620
+
.. _cmd-BLEOTA:
3621
+
3622
+
:ref:`AT+BLEOTA <BLE-AT>`: Initialize or Deinitialize Bluetooth LE OTA
If Bluetooth LE OTA is not initialized, the response is:
3641
+
3642
+
::
3643
+
3644
+
+BLEOTA:0
3645
+
3646
+
OK
3647
+
3648
+
If Bluetooth LE OTA is initialized, the response is:
3649
+
3650
+
::
3651
+
3652
+
+BLEOTA:1
3653
+
3654
+
OK
3655
+
3656
+
Set Command
3657
+
^^^^^^^^^^^
3658
+
3659
+
**Function:**
3660
+
3661
+
Initialize or deinitialize Bluetooth LE OTA.
3662
+
3663
+
**Command:**
3664
+
3665
+
::
3666
+
3667
+
AT+BLEOTA=<init>
3668
+
3669
+
**Response:**
3670
+
3671
+
::
3672
+
3673
+
OK
3674
+
3675
+
Parameter
3676
+
^^^^^^^^^^
3677
+
3678
+
- **<init>**:
3679
+
3680
+
- 0: deinitialize Bluetooth LE OTA;
3681
+
- 1: initialize Bluetooth LE OTA.
3682
+
3683
+
Notes
3684
+
^^^^^
3685
+
3686
+
- The default AT firmware does not enable this command. To use it, please refer to :doc:`../Compile_and_Develop/How_to_implement_BLE_OTA_update` to enable the configuration (and update the MTU to the recommended value 512 at the same time), then rebuild the firmware.
3687
+
- If you need to set the Bluetooth LE OTA device name, please execute the :ref:`AT+BLEOTANAME <cmd-BLEOTANAME>` command before initializing with this command.
3688
+
- After successful initialization, the device automatically starts advertising, waits for the peer APP to connect, and then receives the OTA firmware from the peer APP.
3689
+
- After the firmware has been transferred and verified, the device automatically restarts.
3690
+
- Please refer to :doc:`../Compile_and_Develop/How_to_implement_BLE_OTA_update` for the GATT services, peer APP sequence, and data packet format.
0 commit comments