I am trying to send a message from vivoactive to a companion app running on Android. I am getting same error when i run the sample project Comm thats is available with SDK
in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
in C:\Skumar\connectiq-sdk-win-1.1.0\samples\Comm\source\Comm.mc (onMenuItem:110)
TVM ERROR:
Communications Error
Failed invoking <symbol>
Here is the code
class MenuInput extends Ui.MenuInputDelegate
{
var cnt = 0;
function onMenuItem(item)
{
var listener = new CommListener();
if( item == :hello ) {
Comm.transmit("Hello World.", null, listener );
}
else if( item == :trap ) {
Comm.transmit( "IT'S A TRAP!", null, listener );
}
else if( item == :garmin ) {
Comm.transmit( "ConnectIQ", null, listener );
}
}
}
class CommListener extends Comm.ConnectionListener
{
function onComplete()
{
System.println( "Transmit Complete" );
}
function onError()
{
System.println( "Transmit Failed" );
}
}
The communication works fine when i am running it on the simulator.
Software Versions
SDK: 1.1.1
Firmware: V2.70
Has anyone faced this issue?