Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String V1 = "";
- String V2 = "";
- String V4 = "";
- String V5 = "";
- String V6 = "";
- String V7 = "";
- //============================================================== onCommandReceived
- //==============================================================
- /* This function is called every time Virtuino app sends a request to server to change a Pin value
- The 'variableType' can be V=Virtual Pin
- The 'variableIndex' is the pin number index of Virtuino app
- The 'valueAsText' is the value that has sent from the app in Strin format */
- void Read_V1(String value_Text);
- void Read_V2(String value_Text);
- //..........
- void onReceived(char variableType, uint8_t variableIndex, String valueAsText) {
- if (variableIndex == 1) Read_V1(valueAsText);
- if (variableIndex == 2) Read_V2(valueAsText);
- //.............
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement