Skip to content

print troubleshooting info, added broker port, general cleanup #34

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

Merged
merged 2 commits into from
Feb 15, 2019

Conversation

ubidefeo
Copy link
Collaborator

ArduinoIoTCloudClass:

  • defined DEFAULT_BROKER_PORT (see next)
  • added brokerPort private member (uint16_t because of how it is defined in MQTT client)
  • added possibility to pass an alternative Broker port after the address
  • added getBrokerPort() method
  • added printDebugInfo() method to ArduinoIoTCloud, to allow user to print out info useful for troubleshooting: Broker address:port, Thing ID, Device ID
    WiFiConnectionManager:
  • tweaked interval time for GETTIME
  • added check for firmwareVersion() required version (delays 5 seconds if version is older than latest fixed ones, but still moves forward)
  • cleaned up a couple of debugMessage formatted strings
    Both:
    removed *msgBuffer=0 from anywhere the buffer was filled with a new message

- defined DEFAULT_BROKER_PORT (see next)
- added brokerPort private member (uint16_t because of how it is defined in MQTT client)
- added possibility to pass an alternative Broker port after the address
- added getBrokerPort() method
- added printDebugInfo() method to ArduinoIoTCloud, to allow user to print out info useful for troubleshooting: Broker address:port, Thing ID, Device ID
WiFiConnectionManager:
- tweaked interval time for GETTIME
- added check for firmwareVersion() required version (delays 5 seconds if version is older than latest fixed ones, but still moves forward)
- cleaned up a couple of debugMessage formatted strings
Both:
removed *msgBuffer=0 from anywhere the buffer was filled with a new message
Copy link
Contributor

@aentinger aentinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@@ -33,7 +33,7 @@ class WiFiConnectionManager : public ConnectionManager {

const int CHECK_INTERVAL_INIT = 100;
const int CHECK_INTERVAL_CONNECTING = 500;
const int CHECK_INTERVAL_GETTIME = 100;
const int CHECK_INTERVAL_GETTIME = 666;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason the value is exactly 666? ;)

@ubidefeo ubidefeo self-assigned this Feb 15, 2019
- added printDebugInfo() in example setup
@ubidefeo ubidefeo merged commit def90bb into master Feb 15, 2019
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.

2 participants