summaryrefslogtreecommitdiff
path: root/mp_tool/__init__.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-29 03:19:19 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-29 03:20:49 +0100
commit17a3e144dd0b0675bb994d082d1f50abde9e03da (patch)
tree794fe6871e42aa598db4c778333479bc5cc90407 /mp_tool/__init__.py
parent4e07f8306c855be768d435baac68f14a6bca547b (diff)
downloadmp-tool-17a3e144dd0b0675bb994d082d1f50abde9e03da.tar.gz
mp-tool-17a3e144dd0b0675bb994d082d1f50abde9e03da.zip
put/get via webrepl
Diffstat (limited to 'mp_tool/__init__.py')
-rw-r--r--mp_tool/__init__.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/mp_tool/__init__.py b/mp_tool/__init__.py
index 77b8820..63fe14f 100644
--- a/mp_tool/__init__.py
+++ b/mp_tool/__init__.py
@@ -1,9 +1,12 @@
-
class Constants:
ENTER_RAW_MODE = b'\x01' # CTRL-A
- ENTER_REPL_MODE = b'\x02' # CTRL-B
- INTERRUPT = b'\x03' # CTRL-C
- CTRL_D = b'\x04' # CTRL-D
+ ENTER_REPL_MODE = b'\x02' # CTRL-B
+ INTERRUPT = b'\x03' # CTRL-C
+ CTRL_D = b'\x04' # CTRL-D
MARKER_BEGIN = b'>>>>>>>>>>'
MARKER_END = b'<<<<<<<<<<'
+ WEBREPL_REQ_S = "<2sBBQLH64s"
+ WEBREPL_PUT_FILE = 1
+ WEBREPL_GET_FILE = 2
+ WEBREPL_GET_VER = 3