C# 클래스 Kreyos.SDK.Bluetooth.Protocol

파일 보기 프로젝트 열기: kreyosopensource/KreyosWP

공개 메소드들

메소드 설명
LoadDataFile ( String fileName ) : Task
LoadDataFromBuffer ( byte buffer ) : ActivityDataDoc
Protocol ( BluetoothAgent btAgent ) : System
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 ( Geoposition geoPosition, int distance, int calories ) : void
sendGPSInfo ( short spd, short alt, int distance, int calories ) : void
sendStream ( string name, Stream stream ) : bool
sendStream ( string name, StreamReader sr ) : bool
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

비공개 메소드들

메소드 설명
GET_PACKET_END ( byte pack ) : int
GetValue ( int rawValue, ActivityDataRow dtype ) : double
LoadData ( DataReader reader ) : ActivityDataDoc
buildDataBuffer ( List buflist ) : byte[]
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

메소드 상세

LoadDataFile() 공개 메소드

public LoadDataFile ( String fileName ) : Task
fileName String
리턴 Task

LoadDataFromBuffer() 공개 메소드

public LoadDataFromBuffer ( byte buffer ) : ActivityDataDoc
buffer byte
리턴 ActivityDataDoc

Protocol() 공개 메소드

public Protocol ( BluetoothAgent btAgent ) : System
btAgent BluetoothAgent
리턴 System

activityHeartbeat() 공개 메소드

public activityHeartbeat ( string activityId ) : void
activityId string
리턴 void

buildSyncTimePack() 공개 메소드

public buildSyncTimePack ( ) : byte[]
리턴 byte[]

buildSyncTimePackFromInput() 공개 메소드

public buildSyncTimePackFromInput ( System.DateTime p_date ) : byte[]
p_date System.DateTime
리턴 byte[]

buildWatchConfig() 공개 메소드

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
리턴 byte[]

bytesToInt() 공개 정적인 메소드

public static bytesToInt ( byte buf, int start ) : int
buf byte
start int
리턴 int

bytesToShort() 공개 정적인 메소드

public static bytesToShort ( byte buf, int start ) : int
buf byte
start int
리턴 int

deleteFile() 공개 메소드

public deleteFile ( string fileName ) : void
fileName string
리턴 void

echo() 공개 메소드

public echo ( string hint ) : void
hint string
리턴 void

getActivityData() 공개 메소드

public getActivityData ( ) : void
리턴 void

getDeviceID() 공개 메소드

public getDeviceID ( ) : void
리턴 void

getSportsData() 공개 메소드

public getSportsData ( ) : void
리턴 void

getSportsGrid() 공개 메소드

public getSportsGrid ( ) : void
리턴 void

handlePacket() 공개 메소드

public handlePacket ( byte packet ) : void
packet byte
리턴 void

handle_activity() 공개 메소드

public handle_activity ( byte pack, int handle ) : void
pack byte
handle int
리턴 void

handle_file() 공개 메소드

public handle_file ( byte pack, int handle ) : void
pack byte
handle int
리턴 void

handle_today_activity() 공개 메소드

public handle_today_activity ( byte pack, int handle ) : void
pack byte
handle int
리턴 void

intToByteArray() 공개 정적인 메소드

public static intToByteArray ( int i ) : byte[]
i int
리턴 byte[]

listFile() 공개 메소드

public listFile ( string prefix ) : void
prefix string
리턴 void

longToByteArray() 공개 정적인 메소드

public static longToByteArray ( long s ) : byte[]
s long
리턴 byte[]

notifyMessage() 공개 메소드

public notifyMessage ( string type, string identity, string message ) : void
type string
identity string
message string
리턴 void

readFile() 공개 메소드

public readFile ( string filename ) : void
filename string
리턴 void

sendDailyActivityRequest() 공개 메소드

public sendDailyActivityRequest ( ) : void
리턴 void

sendGPSInfo() 공개 메소드

public sendGPSInfo ( Geoposition geoPosition, int distance, int calories ) : void
geoPosition Windows.Devices.Geolocation.Geoposition
distance int
calories int
리턴 void

sendGPSInfo() 공개 메소드

public sendGPSInfo ( short spd, short alt, int distance, int calories ) : void
spd short
alt short
distance int
calories int
리턴 void

sendStream() 공개 메소드

public sendStream ( string name, Stream stream ) : bool
name string
stream Stream
리턴 bool

sendStream() 공개 메소드

public sendStream ( string name, StreamReader sr ) : bool
name string
sr System.IO.StreamReader
리턴 bool

setGestureControl() 공개 메소드

public setGestureControl ( bool enable, bool isLeftHand, int action_map ) : void
enable bool
isLeftHand bool
action_map int
리턴 void

setWatchAlarm() 공개 메소드

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
리턴 void

setWatchGrid() 공개 메소드

public setWatchGrid ( ) : void
리턴 void

shortToByteArray() 공개 정적인 메소드

public static shortToByteArray ( short s ) : byte[]
s short
리턴 byte[]

syncTime() 공개 메소드

public syncTime ( ) : void
리턴 void

syncTimeFromInput() 공개 메소드

public syncTimeFromInput ( System.DateTime p_date ) : void
p_date System.DateTime
리턴 void

syncWatchConfig() 공개 메소드

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
리턴 void

unlockWatch() 공개 메소드

public unlockWatch ( ) : void
리턴 void