Author Topic: BFBluetoothMassSender  (Read 2578 times)

Offline nico

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
BFBluetoothMassSender
« on: March 14, 2007, 05:03:31 PM »
Hi!
How to use?

Thanks!

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: BFBluetoothMassSender
« Reply #1 on: March 14, 2007, 07:20:07 PM »
Good time of the day!

Sorry for a delayed answer. This night I will upload new version of the livrary with a samples for MassSender.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Hussain

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: BFBluetoothMassSender
« Reply #2 on: March 19, 2007, 12:17:02 PM »
To use the MassSender, call it's Start method. Before doing so, you have the option of setting CompanyInfo... and the associated SendCompanyInfo property to True. If this is set, CompanyInfo will be sent to all devices in form of vCard wether you are sending files or not.
In the CompanyInfo, the Message property should contain the name to be shown in the address book, its Name property is for the Company name and is optional.
Once you call start, the MassSender will discover all BT devices. For each device found, it will raise an OnAcceptDevice event. If you want this device to receive the file, change the Accept parm to True.
Once all the devices ave been discovered, it will raise NeedFile events. Set the File parm. If there are more files after this, set the More parm to true.
On the last NeedFile, set More to False.
Then, you'll get SendingStarted and SendingComplete events.
Note: You will not receive an event for when a particular file is sent to a particular device.
After all files have been transferred, MassSender will loop back to discovering devices, so make sure you keep a track of devices and set Accept to False otherwise you'll end up resending same stuff to everyone over and over.

Hope this helps.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: BFBluetoothMassSender
« Reply #3 on: March 19, 2007, 12:36:18 PM »
WOW! Thank you! Very good explanation!
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Patrick

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: BFBluetoothMassSender
« Reply #4 on: February 17, 2009, 06:15:22 PM »
much thanks if somebody has the answer to the following (newbie to VB, usually do things on php/oop):

1.  possible to set the frequency of discovery? eg. do a pause between discoveryComplete & start discovery?

2.  _OnSendFileComplete/_OnSendComplete, one param is Status as BFMSSendResultX, what are the possible values of that and their meanings?  From _OnSendvCardComplete, it seems like the possible values are numeric/int?

3.  Just want to make sure that I am reading the time-sequence logs right: for _OnSendvCardComplete, the Status can be 0/1/2, meanings:
     0 = device accepted the file by clicking on the yes btn on the yes/no approval screen (after vCard has been sent)
     1 = device accept the pairing and thus the first yes/no approval screen & the vCard
     2 = device declined the file by clicking on the no btn on the yes/no approval screen (after vCard has been sent)?
     any other potential values for Status?

Patrick

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: BFBluetoothMassSender
« Reply #5 on: February 17, 2009, 06:27:08 PM »
Hi,

1. Sleep interval.
2. srSuccess, srIgnored, srDeclined
3. srSuccess = 0,
    srIgnored = 1,
    srDeclined = 2
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager