Skip to first unread message

Wojciech Borkowski

unread,
Nov 9, 2015, 5:24:40 PM11/9/15
to mitappinv...@googlegroups.com

Hello guys,

I already can connect and disconnect to my BT module (HC-06), but I don't know how to check the connection. I want to alert user about no power on arduino with this module, how can I make this? I spend few hours thinking about it and there is nothing here, please help.

I attach my block diagram.


Taifun

unread,
Nov 9, 2015, 5:46:44 PM11/9/15
to MIT App Inventor Forum
send some text to the Arduino and if your get a response, you know it is still connected, else it is disconnected
btw. you might want to connect correctly like this...



Taifun

Wojciech Borkowski

unread,
Nov 9, 2015, 5:55:32 PM11/9/15
to mitappinv...@googlegroups.com

@Taifun - thank you for your answer

I modified block diagram and now it looks like this. I used your suggestion about correctly connection. I noticed, that error 516 is about broken pipe, so I used it for disconnect my BT, please tell my is that right thing.  

Taifun

unread,
Nov 9, 2015, 6:10:26 PM11/9/15
to MIT App Inventor Forum
the property IsConnected will not be updated automatically in case the connection is gone
to check if the devices are still connected, as far as I know there is only the already mentioned method...
send some text to the Arduino and if your get a response, you know it is still connected, else it is disconnected
Taifun

Wojciech Borkowski

unread,
Nov 9, 2015, 6:25:39 PM11/9/15
to MIT App Inventor Forum
Yeap, tried to use "IsConnected" but it isn't work. You might not notice that I add sending "t" to timer1 :)
Reply all
Reply to author
Forward
0 new messages