- I use this :
var settings = Toybox.System.getDeviceSettings();
if (settings has : phoneConnected)
{
// Check the connection state v3.0.0
var state = settings.connectionInfo[:bluetooth].state;
the state value will be : CONNECTION_STATE_NOT_INITIALIZED, CONNECTION_STATE_NOT_CONNECTED or
CONNECTION_STATE_CONNECTED
This part of code works fine with the simulator but on my vivoactive 3 the 0 state is never set. Is it really a bug ?