Virtuino SE uses a very simple request format to communicate with Arduino, ESP, Rasberry and any other server

(Important: Virtuino SE uses different request format than Virtuino)

 

Command  format to read a value from the server

&Vx=?

& is  the command start character

V is the type of memory. Only the V memory area is supported

 

x is the memory index. (0 - 255) 

The character before the value

ask for value

 

Command  format to write a value to server

&Vx=value

& is  the command start character

V is the type of memory. Only the V rtuino SE  V memory is supported

x is the memory index. (0 - 255) 

The character before the value

value is the value as number or text


Virtuino SE command to read the value of the V memory V0 (without VIRTUINO_KEY)

&V0=?

Request from Virtuino SE: GET /&V0=?

Response from server  &V0=12.5       (12.5 is the value of V0)

 

Virtuino SE command to upload the value 45 to the V memory V0 (without VIRTUINO_KEY)

&V0=45

Request from virtuino: GET /&V0=45

Response from server :  OK 

 


Virtuino SE command to read  the value of the V memory V0 (with VIRTUINO_KEY=1234)

&KEY=1234&V0=?

Request from virtuino: GET /&KEY=1234&V0=?

Response from server:  &V0=23.7   (23.7 is the value of V0)

 

Virtuino SE command to upload  the value 45 of the V memory V0 (with VIRTUINO_KEY=1234)

&KEY=1234&V0=45

Request from virtuino: GET /&KEY=1234&V0=45

Response from server:  OK

 


Virtuino SE command to read  more than one V memory values  (with VIRTUINO_KEY=1234)

&KEY=1234&V0=?&V1=?&V12=?

Request from virtuino: GET /&KEY=1234&V0=?&V1=?&V12=?

Response from server:  &V0=12.7&V1=45&V12=7.89

 

Virtuino SE command to upload  more than one V memory values  (with VIRTUINO_KEY=1234)

&KEY=1234&V0=34&V1=23.5&V12=7

Request from virtuino: GET /&KEY=1234&V0=34&V1=23.5&V12=7

Response from server:  OK

 

Virtuino SE command to read  and write values to server (with VIRTUINO_KEY=1234)

&KEY=1234&V0=?&V1=24&V12=?

Request from virtuino: GET /&KEY=1234&V0=?&V1=24&V12=?

Response from server:  &V0=12.7&V12=7.89

 


Virtuino SE command to read  a Text value from the server  (with VIRTUINO_KEY=1234)

&KEY=1234&V0=?  (or &KEY=1234&T0=?)

Request from virtuino: GET /&KEY=1234&V0=?

Response from server:  &V0=the text      (the text has to be encoded)

 

Virtuino SE command to upload  a Text value to the server  (with VIRTUINO_KEY=1234)

&KEY=1234&V0=Hello server

Request from virtuino: GET /&KEY=1234&V0=Hello server         (The text that sends from Virtuino SE app is encoded. The server needs to decode it)

Response from server:  OK

 


How to test your board Server without Virtuino SE app

Open your browser. Then enter the next line to set the V13 memory to 1

http://192.168.1.150:8000/&KEY=1234&V13=1 

192.168.1.150 is the server IP

8000 is the server Port number

other examples:

http://192.168.1.150:8000/&KEY=1234&V13=0&V3=?&V7=45 

http://192.168.1.150:8000/&KEY=1234&V0=Hello&V10=34.567&V4=768