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

With logging: atmega works for sensor to send, receive does not #19

Open
wants to merge 10 commits into
base: withLogging
Choose a base branch
from

Conversation

jschrempp
Copy link
Contributor

In this code the sensor LED will blink several times if it does not get a good response when reading the LoRa module.

When the sensor button is pressed, a message is sent to the hub. Debug prints from the hub show that the message is received and that the hub responds with the correct message.

However, the sensor reports 7 flashes. This indicates that the string the sensor got from LoRa was not one of these:

+OK or a string that starts with +RCV

I added a delay of one second between LoRa_Serial.Available and LoRa_Serial.ReadString but that did not help. The next step might be to try this code in a Photon2 just to see that it does work there. This code has

#define PARTICLEPROCESSOR 0

in tpp_LoRa.h Set the define to 1 if running on a Particle processor.

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

Successfully merging this pull request may close these issues.

1 participant