where response of "AT+BTI" command saved?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
alsadk
Flowcode V4 User
Posts: 12
Joined: Sat Mar 03, 2012 4:11 pm
Contact:

where response of "AT+BTI" command saved?

Post by alsadk »

Hello,
When using Bluetooth for inquiry where response of "AT+BTI" command saved?
How can i access that location?

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: where response of "AT+BTI" command saved?

Post by Benj »

Hello,

Why not use the Create command macro to build up the AT+BTI command and then use the SendCommand function to transmit it to the module.

Then reverse the process to get the response using the WaitForResponse and the StringRead functions.

Details of these functions can be found in the bluetooth component help file.

alsadk
Flowcode V4 User
Posts: 12
Joined: Sat Mar 03, 2012 4:11 pm
Contact:

Re: where response of "AT+BTI" command saved?

Post by alsadk »

Yes. but what i try to do is to use the response to connect to multiple Bluetooth devices by send "ATD" command but instead of using fixed MAC address i want to use the devices i got by using "AT+BTI"

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: where response of "AT+BTI" command saved?

Post by Benj »

Hello,

The response from the AT+BTI command is not saved anywhere so you would have to call the command and save it yourself in your program using the macros I mentioned and then you should be able to do what you require.

I'm by no means an expert on Bluetooth but isn't it only a point to point protocol? eg you can only connect/pair 2 modules together at any one time.

Post Reply