I tried to use HC-SR501, camera and MQTT to make a smart home sensory node. After the sensor triggered irq, the isr set a flag to true and then the loop will check the flag and try to publish a message. But during the publish process, the system paniced.
I tried to use HC-SR501, camera and MQTT to make a smart home sensory node. After the sensor triggered irq, the isr set a flag to true and then the loop will check the flag and try to publish a message. But during the publish process, the system paniced.