|
| Re: "Beaming" over Bluetooth, or... serial? |
 |
Mon, 21 May 2007 10:26:42 +010 |
Luc Le Blanc wrote:
> Luc Le Blanc wrote:
>
>> I see that apps like Filez can let you select the transport
>> to use for "beaming" (Bluetooth, SMS, IR and other more
exotic
>> like PrintMe or Versamail). How is this done?
>
> Contrary to my initial belief, the source code for FileZ is public. I see
it prefixes the socket.name with "?_send;_beam:" to pop up a system
dialog asking which transport to use. If I want to explicitely use Bluetooth, my
Palm OS Programming Bible tells me to use "_btobex://?_single/" before
the name. But that doesn't do anything: the data still gets beamed over IR (as
tested on a T3). What's missing?
>
> As for serial, even if I take care of the connection, is there a way to
make ExgPut and ExgSend use the serial link, or can this only work with
ExgDBWrite and a custom write callback proc?
>
>
> Luc Le Blanc
>
BtExgLib.h has defines for the BT exchange library. I think you want
btexgSingleSufix which works out as "?_single/"
the "?" tells the exchange manager to prompt the user if multiple
libraries are registed to handle the same scheme (i.e. "_send")
The exchange manager uses the scheme to work out which exchange
libraries it has to use to send the data. Each library registeres one or
more scheme with the exchange manager when it is opened.
You can write a shared library to handle sending data via the serial
link. It must have the same interface as all the other exchange
libraries. (see ExgLib.h for details). We have had to do this for our
mail application to handle sending attachments.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|