Problem with more than 9 inputValue


#1

Hi
Sorry ,My english languge is not good .

if I increase inputValue(switch) more than 9 parameter , in android software, when i switch inputValue 10 or 11 or 12 to ON , if switch 1 or 2 or 3 is On , then switch show off in android screen

PLZ help Me

#define DEBUG
#include <ThingerWebConfig.h>

#define pin LED_BUILTIN

ThingerWebConfig thing;

bool S1=LOW;
bool S2=LOW;
bool S3=LOW;
bool S4=LOW;
bool S5=LOW;
bool S6=LOW;
bool S7=LOW;
bool S8=LOW;
bool S9=LOW;
bool S10=LOW;
bool S11=LOW;
bool S12=LOW;

void setup() {

Serial.begin(9600);

pinMode(pin, OUTPUT);
digitalWrite(pin, HIGH);

thing[“Relay-A”] << inputValue(S1, {if (!S1) {Serial.println("#a");digitalWrite(pin,HIGH); }else {Serial.println("#A");digitalWrite(pin,LOW);}});
thing[“Relay-B”] << inputValue(S2, {if (!S2) {Serial.println("#b");digitalWrite(pin,HIGH); }else {Serial.println("#B");digitalWrite(pin,LOW);}});
thing[“Relay-C”] << inputValue(S3, {if (!S3) {Serial.println("#c");digitalWrite(pin,HIGH); }else {Serial.println("#C");digitalWrite(pin,LOW);}});

thing[“Relay-D”] << inputValue(S4, {if (!S4) {Serial.println("#d");digitalWrite(pin,HIGH); }else {Serial.println("#D");digitalWrite(pin,LOW);}});
thing[“Relay-E”] << inputValue(S5, {if (!S5) {Serial.println("#e");digitalWrite(pin,HIGH); }else {Serial.println("#E");digitalWrite(pin,LOW);}});
thing[“Relay-F”] << inputValue(S6, {if (!S6) {Serial.println("#f"); digitalWrite(pin,HIGH);}else {Serial.println("#F");digitalWrite(pin,LOW);}});

thing[“Relay-G”] << inputValue(S7, {if (!S7) {Serial.println("#g");digitalWrite(pin,HIGH); }else {Serial.println("#G");digitalWrite(pin,LOW);}});
thing[“Relay-H”] << inputValue(S8, {if (!S8) {Serial.println("#h");digitalWrite(pin,HIGH); }else {Serial.println("#H");digitalWrite(pin,LOW);}});
thing[“Relay-I”] << inputValue(S9, {if (!S9) {Serial.println("#i");digitalWrite(pin,HIGH); }else {Serial.println("#I");digitalWrite(pin,LOW);}});

thing[“Relay-J”] << inputValue(S10, {if (!S10) {Serial.println("#j"); digitalWrite(pin,HIGH);}else {Serial.println("#J");digitalWrite(pin,LOW);}});
thing[“Relay-K”] << inputValue(S11, {if (!S11) {Serial.println("#k"); digitalWrite(pin,HIGH);}else {Serial.println("#K");digitalWrite(pin,LOW);}});
thing[“Relay-L”] << inputValue(S12, {if (!S12) {Serial.println("#l"); digitalWrite(pin,HIGH);}else {Serial.println("#L");digitalWrite(pin,LOW);}});

}

void loop() {
thing.handle();
}