5. Support for ASB links

The ASB module uses services provided by the L2CAPLink module (which also offer services to the L2CAP point-to-point/connection-oriented module) to send L2CAP packets over the ASB link and to receive incoming L2CAP packets on channel 2, the channel reserved for broadcast data.

For ASB links we have defined a new API which is completely different from the traditional MIDP-based JSR82 API, by introducing the ASBChannel class that represents the abstraction of an ASB link.

Here is a simple code example:

      
/* example server pseudo-code */
short psm_to_use = 100;
ASBChannel chan = new ASBChannel(psm_to_use);
chan.send(data);