Datasheet
2016-2019 Microchip Technology Inc. DS50002489D-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