Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't toggle state from MicroPython after Upgrade to 8.1.0 on Sonoff Basic #7433

Closed
Fiege opened this issue Jan 4, 2020 · 1 comment
Closed
Labels
template missing/incomplete Action - Template Missing or incomplete (issue will be closed)

Comments

@Fiege
Copy link

Fiege commented Jan 4, 2020

Hello.
I updated one of my Sonoff Basics yesterday to the latest Release:

Program Version 8.1.0(tasmota)
Build Date & Time 2019-12-25T12:33:25
Core/SDK Version 2_6_1/2.2.2-dev(38a443e)
Uptime 0T00:09:16
Flash write Count 5 at 0xF7000
Boot Count 1
Restart Reason Software/System restart
Friendly Name 1 Tasmota

ESP Chip Id 4983749
Flash Chip Id 0x14405E
Flash Size 1024kB
Program Flash Size 1024kB
Program Size 566kB
Free Program Space 436kB
Free Memory 27kB

I have a lot of ESP8266 running MicroPython to switch devices on/off .
Since the update I am not able to toggle the state or send any command from MP to the Sonoff Basic.
Before the update it was running on a 6.x Version of Tasmota and everything worked fine.

This is the Python code, mostly direct copy and pasted from the MP docs:

def http_get(url, prt):
try:
_, _, host, path = url.split('/', 3)
addr = socket.getaddrinfo(host, prt)[0][-1]
s = socket.socket()
s.connect(addr)
s.send(bytes('GET /%s HTTP/1.0\r\nHost: %s\r\n\r\n' % (path, host), 'utf8'))
s.close()
except OSError as err:
print ("OSError in http get function")
#endtry

the call looks like this:
switch2UrlTgl = "http://192.168.99.213/cm?cmnd=Power%20TOGGLE"
http_get(switch2UrlTgl, 80 )

The logs on the Sonoff doesn't log any request even on "more debug"

If I paste the URL to FireFox it works like expcted.

@close-issue-app
Copy link

This issue has been automatically closed because the issue template is missing or incomplete.
Filling the template is required so standard questions don't need to be asked again each time. Our ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce the time required to help you.
Please, could you be so kind on completing the issue template in order to have more information so as to properly help you?
Thank you for taking the time to report, hopefully it can be resolved soon.
Support Information
Wiki for more information.
Chat for more user experience.
Community for forum.
Code of Conduct
Contributing Guideline and Policy

@close-issue-app close-issue-app bot added the template missing/incomplete Action - Template Missing or incomplete (issue will be closed) label Jan 4, 2020
Jason2866 added a commit to Jason2866/Tasmota that referenced this issue Jul 27, 2020
includes Arduino backport arendst#7488 backport arendst#7487 backport arendst#7486 backport arendst#7464 backport arendst#7434 backport arendst#7433
Security fix and malloc fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template missing/incomplete Action - Template Missing or incomplete (issue will be closed)
Projects
None yet
Development

No branches or pull requests

1 participant