Skip to content

Powered off companion will be back to on when receiving a LoRa packet?Β #1049

@IoTThinks

Description

@IoTThinks

Hi guys,
I'm checking the code and see something may not right.

When we press the button to off the companion, it will call powerOff()
Image

Then it will call enterDeepSleep(0);
Image

Then it will reach here.
The companion will wake up if it receives a LoRa packet.
esp_sleep_enable_ext1_wakeup( (1L << P_LORA_DIO_1), ESP_EXT1_WAKEUP_ANY_HIGH); // wake up on: recv LoRa packet

When we poweroff the companion, the companion should wake up again ONLY IF we press the button again.
Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions