btSerialPortProfileEnable (Function) |
Top Previous Next |
This function enables or disables a Serial Port Profile(SPP) service on the local device. When remote devices then connects to the port, the _BT_EVENT_INCOMING event is triggered.
Input: ch : SINT The channel to listen on. A typical value for SPP is 22.
UUID : STRING The UUID of the profile to create. If empty, the default SPP profile will be used.
enable : BOOL Set to TRUE to enable the profile, set to FALSE to disable it.
max_con : SINT The maximum number of simultaneous connections from different devices to the same profile. Use 0 to allow all connections, 1 to only allow a single connection.
Returns: INT
Declaration: FUNCTION btSerialPortProfileEnable : INT;
Example: INCLUDE rtcu.inc
|