Open msillano opened 6 years ago
If you type "show script", you see that the script is loaded? Seems so, when looking on thr other topic.
There is no need to delete an old script. Loading a new one automatically deletes the prior.
Yes, 'show script' shows the new script, i.e. the download works, also without 'Sintax check'. And 'script delete' is really not required.
added: But i must use it: Here a transcript (serial):
CMD>script http://192.168.178.23:85/www/sonoff/sonoffscript05.txt
HTTP request to http://192.168.178.23:85/www/sonoff/sonoffscript05.txt started
CMD>
HTTP script download completed (3617 Bytes)
Error (action command expected) at >>"/user "{Time: | $timestamp | ",ON} retained publish
CMD>
[script debug..]
CMD>script http://192.168.178.23:85/www/sonoff/sonoffscript05.txt
HTTP request to http://192.168.178.23:85/www/sonoff/sonoffscript05.txt started
CMD>
HTTP script upload failed (error code -1) [after a bad script I get it. To exit]
CMD>script delete
Script deleted
CMD>script http://192.168.178.23:85/www/sonoff/sonoffscript05.txt
HTTP request to http://192.168.178.23:85/www/sonoff/sonoffscript05.txt started
HTTP script download completed (3599 Bytes)
Syntax okay [ same script as before]
CMD>
Thanks m.s.
My test configuration: Win 10, mosquitto, node-red, Putty. On Putty console I get:
All ok. Now I send a 'script delete' (I must do it before any new srcript ) the I download the script. (It is 'script.sonoff', modifiend ONLY on start config as you see before)
Here it stops: no [CMD>] prompt, and I never seen the "Syntax okay" message. I must press [CR], the prompt shows, and then I can do the 'reset' command. (continue)