D:\connectiq-win-0.1.1\samples\ObjectStore>(type source\ObjectStore.mc) && (nmake /nologo all start run)
using Toybox.Application as App;
using Toybox.System as Sys;
using Toybox.WatchUi as Ui;
class View extends Ui.View
{
function onUpdate(dc)
{
dc.setColor(Gfx.COLOR_RED, Gfx.COLOR_BLACK);
dc.clear();
}
}
class ObjectStore extends App.AppBase
{
var initialized;
function initialize() {
initialized = true;
}
function onStart() {
if (initialized == null) {
Sys.error("initialize() not called before onStart()");
}
}
function getInitialView() {
return [ new View() ];
}
}
del /s /q bin\ObjectStore.prg > :nul 2>&1
monkeyc -o bin\ObjectStore.prg -m .\manifest.xml -z resources\resources.xml source\ObjectStore.mc
connectiq
timeout /nobreak /t 2
monkeydo bin\ObjectStore.prg
Found Transport: tcp
Connecting...
Connecting to device...
Device Version 0.1.0
Device id 1 name "A garmin device"
Shell Version 0.1.0
Copying file.... 71% complete
Copying file.... 100% complete
File pushed successfully
Connection Finished
Closing shell and port
Found Transport: tcp
Connecting...
Connecting to device...
Device Version 0.1.0
Device id 1 name "A garmin device"
Shell Version 0.1.0
initialize() not called before onStart()
Success
in onStart (source\ObjectStore.mc:24)
in onStart (source\ObjectStore.mc:24)
System Error
System Error
Complete
Socket Error in packet header 0
Connection Finished
Closing shell and port