Difference between revisions of "Command:35"

From Awesome Baozam
Jump to: navigation, search
(Created page with "__NOTOC__ ==<includeonly>response to SET Oscillogram</includeonly><noinclude>response to SET Oscillogram</noinclude>== * is an alias of CMD:32|respons...")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
+
== [[cmd:35|response to GET file part from server]] ==
==<includeonly>[[cmd:34|response to SET Oscillogram]]</includeonly><noinclude>response to [[CMD:33|SET Oscillogram]]</noinclude>==
+
1  cmd type
 
+
2  cmd id // set by server
* is an alias of [[CMD:32|response to GET Oscillogram]]
+
1  parts count // always 1
* used in answer to [[cmd:33|SET Oscillogram]]
+
wl  filename length
 
+
c* filename
{{CMD:32}}
+
wl  part start
 +
wl  part length
 +
b*  bytes
  
 
<noinclude>
 
<noinclude>
 +
{{cmd:34}}
 
{{cmd:33}}
 
{{cmd:33}}

Latest revision as of 11:42, 16 September 2016

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


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


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:38 (server - cmd:39) with corresponding code

if ok ping-pong by cmd:34<==>cmd:35 commands starts

when uploading finished device should send cmd:38 with code 600