Digital write showing invalid state value

Whenever I try to use digital write to control LED, the value is shown as:- Invalid State Value . What could be the problem?

Can you post the URL that you are using for the digital Write command here so we can help debug it better

code:-
digitalWrite?pin=5&state=“HIGH” :- for BUZZER ON
digitalWrite?pin=5&state=“LOW”:- for BUZZER OFF

the message it shows after clicking on the “buzzer on” is:-
{“success”:“0”,“value”:“Invalid state value”}

digitalWrite?pin=5&state=“HIGH”

You do not need “” inverted commas in your code

digitalWrite?pin=5&state=HIGH <= This should do

1 Like