Search found 2 matches
- Wed Jul 07, 2021 8:41 am
- Forum: ESP8266 boards
- Topic: TypeError: can't convert function to int
- Replies: 5
- Views: 3516
Re: TypeError: can't convert function to int
If you look into the script where the value of led_on is set, you'll find: led_on = request.find("/?LED=0") So led_on tells the position of the string "/?LED=0" in the string request . It is expected to be at the position 6, which is the 7th character of the string request . Thanks Robert for expla...
- Mon Jul 05, 2021 10:14 am
- Forum: ESP8266 boards
- Topic: TypeError: can't convert function to int
- Replies: 5
- Views: 3516
Re: TypeError: can't convert function to int
Hi all,
i just wanna to ask what is the function of this number '6' of these script
if led_on == 6:
print('LED ON')
Thanx for answer
i just wanna to ask what is the function of this number '6' of these script
if led_on == 6:
print('LED ON')
Thanx for answer