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

Example utility/ArduinoIoTCloud_Travis_CI has high frequency updates defined for LoRa. #496

Open
zfields opened this issue Jul 20, 2024 · 3 comments
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@zfields
Copy link
Contributor

zfields commented Jul 20, 2024

The following Cloud variables, have a frequency that is too fast for LoRa:

  ArduinoCloud.addProperty(bool_property_1,  READWRITE, 1 * SECONDS);
...
  ArduinoCloud.addProperty(bool_property_2,  Permission::ReadWrite).publishEvery(1 * SECONDS);
...
  ArduinoCloud.addProperty(str_property_3, READWRITE, 1 * SECONDS, 0 /* onStringPropertyChange */, 0.0 /* 'minDelta' */, MOST_RECENT_WINS);
  ArduinoCloud.addProperty(str_property_4, READWRITE, 1 * SECONDS, 0 /* onStringPropertyChange */, 0.0 /* 'minDelta' */, CLOUD_WINS);
  ArduinoCloud.addProperty(str_property_5, READWRITE, 1 * SECONDS, 0 /* onStringPropertyChange */, 0.0 /* 'minDelta' */, DEVICE_WINS);

  ArduinoCloud.addProperty(str_property_6, Permission::ReadWrite).publishEvery(1 * SECONDS).onSync(MOST_RECENT_WINS);
  ArduinoCloud.addProperty(str_property_7, Permission::ReadWrite).publishEvery(1 * SECONDS).onSync(CLOUD_WINS);
  ArduinoCloud.addProperty(str_property_8, Permission::ReadWrite).publishEvery(1 * SECONDS).onSync(DEVICE_WINS);

These variables are already redeclared for LoRa, so perhaps a slower cadence - that is more compatible with LoRa - can be introduced.

@pennam
Copy link
Collaborator

pennam commented Jul 23, 2024

This example is ment to be used only for github CI testing, probably would be a good idea to create a new folder extras/test/example and move it there

@zfields
Copy link
Contributor Author

zfields commented Jul 23, 2024

Is this a "compile only" test? As in it "passes" so long as it compiles to ensure the integrity of your API?

@pennam
Copy link
Collaborator

pennam commented Jul 24, 2024

Yes it is "compile only", no runtime test. This is the workflow used https://github.com/arduino-libraries/ArduinoIoTCloud/blob/master/.github/workflows/compile-examples.yml

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: infrastructure Related to project infrastructure labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants