Hi,
did you use this :
async event void Bluetooth.connectionMade(uint8_t status){//bluetooth
connection established
//exchange message
}
If this doesn't work try to show us the code.
good luck.
2013/6/13 Jonas Lucchesi <[email protected]>
> Hi all,
>
> I'm having some difficulties in my application and I hope someone could
> help me. A bluetooth connection is established and some messages are
> exchanged, then connection is closed for a while and re-established later.
> All this process seems to be working well, except that after reconnection
> sensor not always receive the income messages (sometimes it does, but very
> often it doesn't).
>
> to turn Bluetooth off, I'm using:
> call BTStdControl.stop();
>
> and to turn it on again:
> call BluetoothInit.init();
> call BTStdControl.start();
>
> note: connection is re-established "succesfully", sensor is always able to
> send a message, it's only not always able to receive one.
>
> Does anyone have an idea of what is going on?
>
> Thanks,
> Jonas Lucchesi
>
>
> _______________________________________________
> Shimmer-users mailing list
> [email protected]
> https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
>
>
_______________________________________________
Shimmer-users mailing list
[email protected]
https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users