Method | Description | |
---|---|---|
LoadDataFile ( String fileName ) : Task |
||
LoadDataFromBuffer ( byte buffer ) : |
||
Protocol ( |
||
activityHeartbeat ( string activityId ) : void | ||
buildSyncTimePack ( ) : byte[] | ||
buildSyncTimePackFromInput ( System.DateTime p_date ) : byte[] | ||
buildWatchConfig ( String worldClocks, int worldClockOffset, bool isDigitalClock, int digitalClock, int analogClock, int sportsGrid, int sportsGrids, int goals, int weight, int height, bool enableGesture, bool isLeftHandGesture, int gestureActionsTable, bool isUkUnit ) : byte[] | ||
bytesToInt ( byte buf, int start ) : int | ||
bytesToShort ( byte buf, int start ) : int | ||
deleteFile ( string fileName ) : void | ||
echo ( string hint ) : void | ||
getActivityData ( ) : void | ||
getDeviceID ( ) : void | ||
getSportsData ( ) : void | ||
getSportsGrid ( ) : void | ||
handlePacket ( byte packet ) : void | ||
handle_activity ( byte pack, int handle ) : void | ||
handle_file ( byte pack, int handle ) : void | ||
handle_today_activity ( byte pack, int handle ) : void | ||
intToByteArray ( int i ) : byte[] | ||
listFile ( string prefix ) : void | ||
longToByteArray ( long s ) : byte[] | ||
notifyMessage ( string type, string identity, string message ) : void | ||
readFile ( string filename ) : void | ||
sendDailyActivityRequest ( ) : void | ||
sendGPSInfo ( |
||
sendGPSInfo ( short spd, short alt, int distance, int calories ) : void | ||
sendStream ( string name, Stream stream ) : bool | ||
sendStream ( string name, |
||
setGestureControl ( bool enable, bool isLeftHand, int action_map ) : void | ||
setWatchAlarm ( int index, int mode, int monthday, int weekday, int hour, int minute ) : void | ||
setWatchGrid ( ) : void | ||
shortToByteArray ( short s ) : byte[] | ||
syncTime ( ) : void | ||
syncTimeFromInput ( System.DateTime p_date ) : void | ||
syncWatchConfig ( String worldClocks, int worldClockOffset, bool isDigitalClock, int digitalClock, int analogClock, int sportsGrid, int sportsGrids, int goals, int weight, int height, bool enableGesture, bool isLeftHandGesture, int gestureActionsTable, bool isUkUnit ) : void | ||
unlockWatch ( ) : void |
Method | Description | |
---|---|---|
GET_PACKET_END ( byte pack ) : int | ||
GetValue ( int rawValue, |
||
LoadData ( |
||
buildDataBuffer ( List |
||
buildElement ( byte packet, int offset, string type, byte data ) : int | ||
buildElementHead ( byte packet, int offset, string type, byte len ) : int | ||
buildPacketHead ( byte packet ) : int | ||
buildSingleElementPacket ( string type, byte data ) : byte[] | ||
estimateElementHeadSize ( string type ) : int | ||
estimateStringSize ( string type ) : int | ||
fillElementData ( byte packet, int offset, byte data, int from, int len ) : int | ||
get_body_length ( byte pack ) : int | ||
get_element_data ( byte pack, int handle ) : byte[] | ||
get_element_data_size ( byte pack, int handle ) : int | ||
get_element_type ( byte pack, int handle ) : byte[] | ||
get_first_element ( byte pack ) : int | ||
get_first_sub_element ( byte pack, int parent ) : int | ||
get_flag ( byte pack ) : int | ||
get_next_element ( byte pack, int handle ) : int | ||
get_next_sub_element ( byte pack, int parent, int handle ) : int | ||
get_sequence ( byte pack ) : int | ||
get_version ( byte pack ) : int | ||
hexdump ( byte buffer ) : void | ||
sendFileBuffer ( string fileName, byte buffer, int fileLen ) : bool |
public LoadDataFile ( String fileName ) : Task |
||
fileName | String | |
return | Task |
public LoadDataFromBuffer ( byte buffer ) : |
||
buffer | byte | |
return |
public Protocol ( |
||
btAgent | ||
return | System |
public activityHeartbeat ( string activityId ) : void | ||
activityId | string | |
return | void |
public buildSyncTimePackFromInput ( System.DateTime p_date ) : byte[] | ||
p_date | System.DateTime | |
return | byte[] |
public buildWatchConfig ( String worldClocks, int worldClockOffset, bool isDigitalClock, int digitalClock, int analogClock, int sportsGrid, int sportsGrids, int goals, int weight, int height, bool enableGesture, bool isLeftHandGesture, int gestureActionsTable, bool isUkUnit ) : byte[] | ||
worldClocks | String | |
worldClockOffset | int | |
isDigitalClock | bool | |
digitalClock | int | |
analogClock | int | |
sportsGrid | int | |
sportsGrids | int | |
goals | int | |
weight | int | |
height | int | |
enableGesture | bool | |
isLeftHandGesture | bool | |
gestureActionsTable | int | |
isUkUnit | bool | |
return | byte[] |
public static bytesToInt ( byte buf, int start ) : int | ||
buf | byte | |
start | int | |
return | int |
public static bytesToShort ( byte buf, int start ) : int | ||
buf | byte | |
start | int | |
return | int |
public handle_activity ( byte pack, int handle ) : void | ||
pack | byte | |
handle | int | |
return | void |
public handle_file ( byte pack, int handle ) : void | ||
pack | byte | |
handle | int | |
return | void |
public handle_today_activity ( byte pack, int handle ) : void | ||
pack | byte | |
handle | int | |
return | void |
public static intToByteArray ( int i ) : byte[] | ||
i | int | |
return | byte[] |
public static longToByteArray ( long s ) : byte[] | ||
s | long | |
return | byte[] |
public notifyMessage ( string type, string identity, string message ) : void | ||
type | string | |
identity | string | |
message | string | |
return | void |
public sendGPSInfo ( |
||
geoPosition | ||
distance | int | |
calories | int | |
return | void |
public sendGPSInfo ( short spd, short alt, int distance, int calories ) : void | ||
spd | short | |
alt | short | |
distance | int | |
calories | int | |
return | void |
public sendStream ( string name, Stream stream ) : bool | ||
name | string | |
stream | Stream | |
return | bool |
public sendStream ( string name, |
||
name | string | |
sr | ||
return | bool |
public setGestureControl ( bool enable, bool isLeftHand, int action_map ) : void | ||
enable | bool | |
isLeftHand | bool | |
action_map | int | |
return | void |
public setWatchAlarm ( int index, int mode, int monthday, int weekday, int hour, int minute ) : void | ||
index | int | |
mode | int | |
monthday | int | |
weekday | int | |
hour | int | |
minute | int | |
return | void |
public static shortToByteArray ( short s ) : byte[] | ||
s | short | |
return | byte[] |
public syncTimeFromInput ( System.DateTime p_date ) : void | ||
p_date | System.DateTime | |
return | void |
public syncWatchConfig ( String worldClocks, int worldClockOffset, bool isDigitalClock, int digitalClock, int analogClock, int sportsGrid, int sportsGrids, int goals, int weight, int height, bool enableGesture, bool isLeftHandGesture, int gestureActionsTable, bool isUkUnit ) : void | ||
worldClocks | String | |
worldClockOffset | int | |
isDigitalClock | bool | |
digitalClock | int | |
analogClock | int | |
sportsGrid | int | |
sportsGrids | int | |
goals | int | |
weight | int | |
height | int | |
enableGesture | bool | |
isLeftHandGesture | bool | |
gestureActionsTable | int | |
isUkUnit | bool | |
return | void |