Hi,
beginners question…
Is it possible to put the cube cell in deep sleep and wake it up when a packet was received?
Like described here: https://learn.circuit.rocks/esp32-lora-gateway-battery-optimized
Greetings
Olaf
Hi,
beginners question…
Is it possible to put the cube cell in deep sleep and wake it up when a packet was received?
Like described here: https://learn.circuit.rocks/esp32-lora-gateway-battery-optimized
Greetings
Olaf
Hi Olaf,
The supplied LoRaReceiver.ino
example seems to do what you want. Have a look at it.
Peter
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
{
rssi=rssi;
rxSize=size;
memcpy(rxpacket, payload, size );
rxpacket[size]='\0';
turnOnRGB(COLOR_RECEIVED,0);
Radio.Sleep( );
Serial.printf("\r\nreceived packet \"%s\" with rssi %d , length %d\r\n",rxpacket,rssi,rxSize);
}
Thx for reply!
I didn’t see the LoRa branch in examples and i found the reason.
When i install the “LoRa” library from Sandeep Mistry the Lora-Branch in the cubecell-branch disapears.
Why is it so? Is it a bug or a feature?
Greetings
Olaf
Is it possibele to put it in deep sleep and then send a packet on interrupt ?