EasyManua.ls Logo

Microchip Technology RN4870 - Page 40

Microchip Technology RN4870
65 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RN4870/71 Bluetooth
®
Low Energy Module User’s Guide
DS50002466A-page 40 2016 Microchip Technology Inc.
Figure 2-2 shows Battery service output. 0x180F is UUID for Battery Service.
The second line shows that Battery Level UUID is 0x2A19, its handle 0x001A and
property 0x02 (Readable, a value handle; for more information refer to Tabl e A-1 in
Appendix A. “Bluetooth Low Energy Fundamentals”).
The third line shows Battery Level UUID 0x2A19, its handle 0x001B, property 0x10
(Notify, a configuration handle) and current configuration value 0 (Notification not
started yet).
2.7.3
LS[,<P,UUID>]
Command LS lists the server services and their characteristics.
Optionally, command LS takes one input parameter.
If the input parameter is letter “P”, then only the UUIDs of all the services are printed
out.
If the input parameter is the UUID of the service that is either a 2-byte UUID for public
service or a 16-byte UUID for private service, the indicated service and all its charac-
teristics is printed out.
If there is no input parameter, then all the services and their characteristics are printed
out.
The output format of command LS is very similar to that of command LC:
The first line is the primary service UUID.
The second line starts with two spaces followed by the characteristic UUID, han-
dle, characteristic property and for characteristic configuration handle, current
configuration settings.
The property for characteristic value follows definition listed in Ta ble A -1 in
Appendix A. “Bluetooth Low Energy Fundamentals”. Property for characteris-
tic value must have bit 4 and bit 5 cleared (no notification or indication), while
property for characteristic configuration must have either bit 4 or bit 5 set.
The characteristic configuration shows the notification/indication status. Value 0
means notification/indication has not started yet. Value 1 means notification
started and value 2 means indication started.
2.7.4
LW
Command LW lists the current script stored in NVM.
FIGURE 2-2: LISTING CLIENT SERVICE AND CHARACTERISTICS
180F
2A19,001A,02
2A19,001B,10,0
Example: LC // List all client services
Example: LS // Display all server services
Example: LW // Display current script content
Response: <Content of script>
END

Other manuals for Microchip Technology RN4870

Related product manuals