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

Reduce public API by turning connect/disconnect into protected methods. #113

Merged
merged 3 commits into from
Apr 20, 2020

Conversation

aentinger
Copy link
Contributor

The public ArduinoIoTCloud member methods connect and disconnect should not be called by the user of the library (they are called internally) and are therefore transformed to protected member functions. In the future a end function should be added (see #73) which works the opposite way to the the begin method and cleans everything up.

@aentinger
Copy link
Contributor Author

Successfully tested on PROD with

  • MKR 1000 ✔️
  • MKR WiFi 1010 ✔️
  • ESP 8266 ✔️
  • MKR GSM 1400 ✔️
  • MKR WAN 1310 ✔️

@aentinger aentinger requested a review from AlbyIanna April 8, 2020 06:54
…no need to access those functions from the outside. It might be relevant to add a 'end' function which does the opposite of the 'begin' function, that is ramping everything down in an orderly fashion
@aentinger aentinger merged commit eb4a398 into master Apr 20, 2020
@aentinger aentinger deleted the reduce-lora-api branch April 20, 2020 05:46
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