I can listen to the radio channels pretty well now.
Now, I have another problem. I want to control my web radio from a remote web browser, my esp8266 board now works as a (AP) server and (STA) client now. For keeping things simple, I just want to change the radio channel by clicking a button. On the client side,
Code: Select all
reader, writer = await asyncio.open_connection(host, port)
Code: Select all
loop.create_task(asyncio.start_server(myWeb.serve, "0.0.0.0", 80))
1) system initiation
2) picks the firs radio station link
3) plays it
4) starts server, shows a button
5) pushing button triggers "change the channel" function (normallly works fine, tested)
6) cannot connect internet (!)
I suspect these two lines of code clash with each other, bu I cannot figure out how.
As a last resort, I will use two esp8266 boards, one will be responsible for the server side and the other for the client side.