Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoRa deep sleep #13

Open
krupis opened this issue Sep 14, 2023 · 0 comments
Open

LoRa deep sleep #13

krupis opened this issue Sep 14, 2023 · 0 comments

Comments

@krupis
Copy link

krupis commented Sep 14, 2023

Hello. I use your library to test SX1276 LoRa modules on STM32L031. It seems to be working fine, however I have got one question saving current consumption. For my particular application, when the sender sends a message, I want it to enter deep sleep. I use the following code for sending a message:

	   uint8_t res2 = lora_send_packet(&lora, (uint8_t *)"test", 4);
	   if (res2 != LORA_OK) {
			printf("send failed \n");
	   }
	   else{
		   printf("send sucessfull \n");
		   //enter sleep mode
	   }

Is there a function that I need to call to put the SX1276 into low power mode or it goes to low power mode automatically after sending a message? I would very much appreciate clarification. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant