Advertisement
krzysp

virtuino6_base_pins declaration unit

Jan 3rd, 2023
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Arduino 0.81 KB | Source Code | 0 0
  1. String V1 = "";
  2. String V2 = "";
  3. String V4 = "";
  4. String V5 = "";
  5. String V6 = "";
  6. String V7 = "";
  7.  
  8.  
  9. //============================================================== onCommandReceived
  10. //==============================================================
  11. /* This function is called every time Virtuino app sends a request to server to change a Pin value
  12.    The 'variableType' can be   V=Virtual Pin
  13.    The 'variableIndex' is the pin number index of Virtuino app
  14.    The 'valueAsText' is the value that has sent from the app  in Strin format */
  15. void Read_V1(String value_Text);
  16. void Read_V2(String value_Text);
  17. //..........
  18. void onReceived(char variableType, uint8_t variableIndex, String valueAsText) {
  19.   if (variableIndex == 1) Read_V1(valueAsText);
  20.   if (variableIndex == 2) Read_V2(valueAsText);
  21.   //.............
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement