@@ -168,6 +168,16 @@ type = {
168
168
return p . copy ( b , start , 0 , 8 ) ;
169
169
}
170
170
} ,
171
+ uint64_le : { // TBD
172
+ size : 8 ,
173
+ parse : function ( b , start ) {
174
+ var size = 8 ;
175
+ return b . slice ( start , start + size ) ;
176
+ } ,
177
+ unparse : function ( b , start , p ) {
178
+ return p . copy ( b , start , 0 , 8 ) ;
179
+ }
180
+ } ,
171
181
float_le : {
172
182
size : 4 ,
173
183
parse : function ( b , start ) {
@@ -305,15 +315,15 @@ packets = {
305
315
shortname :"setTime" ,
306
316
length :8 ,
307
317
fields :[
308
- { name :"time" , type :type . uint64 }
318
+ { name :"time" , type :type . uint64_le }
309
319
]
310
320
} ,
311
321
0x06 : {
312
322
name :"Time state" ,
313
323
shortname :"timeState" ,
314
324
length :8 ,
315
325
fields :[
316
- { name :"time" , type :type . uint64 }
326
+ { name :"time" , type :type . uint64_le }
317
327
]
318
328
} ,
319
329
0x07 : {
@@ -327,7 +337,7 @@ packets = {
327
337
shortname :"resetSwitchState" ,
328
338
length :2 ,
329
339
fields :[
330
- { name :"position" , type :type . uint16 }
340
+ { name :"position" , type :type . uint8 }
331
341
]
332
342
} ,
333
343
0x0c : {
@@ -535,9 +545,9 @@ packets = {
535
545
shortname :"infoState" ,
536
546
length :24 ,
537
547
fields :[
538
- { name :"time" , type :type . uint64 } ,
539
- { name :"uptime" , type :type . uint64 } ,
540
- { name :"downtime" , type :type . uint64 }
548
+ { name :"time" , type :type . uint64_le } ,
549
+ { name :"uptime" , type :type . uint64_le } ,
550
+ { name :"downtime" , type :type . uint64_le }
541
551
]
542
552
} ,
543
553
0x24 : {
0 commit comments