2016-2023 Microchip Technology Inc. DS50002489G-page 29
RN4870/71
6.0 ASCII COMMAND API
The RN4870/71 command Application Programming
Interfaces (APIs) are documented in the “RN4870/71
Bluetooth
®
Low Energy Module User’s Guide”
(DS50002466).
The following are the available command options and
their categories:
• Connection
- Establish connection
- Disconnect
- Bond/unbond current connection
- Start/stop scan for other devices
- Add/delete peer devices to white list
- Read RSSI values
- Stop connection process
•I/O
- Read/write I
2
C
- Change settings in the EEPROM
- Configure pin functions
- Configure GPIO mask
- Set/get GPIO states
- Read and write analog data
- PWM control (only for RN4870)
• System
- Reboot
- Factory default
- Enter and Exit Command mode
- Enter Low-Power mode
•Scripting
- Enter Script mode
- Declare event handler
- Execute current script
- List current script
- Clear script
- Define user function
•GATT Services
- Create/delete public services/characteristics
- Read/write characteristic values
- Set notification for characteristics
• GAP Role
- Central, Peripheral, Observer and
Broadcaster
• Advertising
- Start/stop
- Set custom advertisement content
- Set scan response content
- Set beacon content
• Private Service
- Create/delete private services/characteristics
- Read/write characteristic values
- Set notification for characteristics
• Transparent UART
- Enable/disable
- Peripheral side configuration
- Central side configuration
• Remote configuration of the module
• Read individual device information or profile
settings
Downloaded from Arrow.com.