Yapay zekâ tarafından English dilinden çevrildi ·
çalıştı!!! Otobüsten test ettim. Beni takılan bir şey: Komutu önce Privileged olarak oluşturdum, çünkü şebeke gerilimini anahtarlıyor ve karttaki anahtar komutun karttan gönderilemediğini söyledi. Basic olarak değiştirdim ve geçti. Ayrıca artık on_connect içinde abone oluyorum, sizin yazdığınız gibi; önceden Pi’nin Wi-Fi’si kısa süreliğine kesildikten sonra çalışmayı bırakıyordu.
it works!!! tested from the bus. One thing that tripped me: I first made the command Privileged because it switches mains and the switch on the board just said it can’t be sent from a board. Changed it to Basic and it went through. Also I subscribe in on_connect now like you wrote, before it stopped working after the Pi’s Wi-Fi blipped.

