Skip to content

Program Characteristic

Eugene Krashtan edited this page Mar 24, 2018 · 2 revisions

Send and run Javascript program inside controller. Controller can store only one script. ToDo: Script name, many scripts

data[0] Packet Description
0 Reset Stop execution and clean script buffer
1 Write Sending script ( remove old one)

Write

First packet format:

Byte Value
0 1 (Write command)
1-2 Program length
3-xx ToDo: Script name

Next packets - bytes of program text in 20-byte packets. Last packet may be smaller.

Clone this wiki locally