Difference between revisions of "Command:33"

From Awesome Baozam
Jump to: navigation, search
Line 11: Line 11:
  
 
<noinclude>
 
<noinclude>
 +
on error device should send cmd:252
 +
if ok ping-pong by 34<->35 commands starts
 +
when uploading finished device should send 252 with code 600
 +
 
== Error reports ==
 
== Error reports ==
 
*  [[cmd:252]]
 
*  [[cmd:252]]

Revision as of 12:15, 9 September 2016

PUT file to device

1  cmd type
2  cmd id // set by server
1  files count // max 256

file infos[*]

wl  filename length
c*  filename
wl  file size
   if file_size=0 it means that device should delete the file


on error device should send cmd:252 if ok ping-pong by 34<->35 commands starts when uploading finished device should send 252 with code 600

Error reports

GET file part from server

1  cmd type
2  cmd id // set by server
1  parts count // always 1
wl  filename length
c*  filename
wl  part start
wl  part length


response to GET file part from server

1  cmd type
2  cmd id // set by server
1  parts count // always 1
wl  filename length
c*  filename
wl  part start
wl  part length
b*  bytes