5.4.3.3 Define Service UUID (PS,<hex16/hex128>)
Format:
PS,<hex16/hex128>
Command PS
sets the UUID of the public or the private service. The user
must call this command before command PC
.
The effect of command PS
is verified after a valid PC
command and after a reboot or power cycle.
Command PS
expects one parameter that is either a 16-bit UUID for public
service or a 128-bit UUID for private service.
Example: | PS,010203040506070809000A0B0C0D0E0F
|
// Define a private service with UUID 0x010203040506070809000A0B0C0D0E0F |
Response: | AOK
|
// Success |
Err |
// Syntax error, invalid parameter or not enough space to add another service |
|
Note: The PDS stores the
defined services. The defined services are effective
immediately.
|