Skip to content

fix(phone-as-device): app-478 app-479 fix NPE client is non connected #10

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 1 commit into from
Jul 13, 2023

Conversation

alessioemireni
Copy link
Contributor

The purpose of this PR is to avoid NPE when the client is subscribing or disconnecting.

To do that we need to expose a method to JS, isConnected, that checks the connection status of the client. The method invokes the methods exposed by underline libraries, Paho Android for Android and CocoaMQTT for iOS.

Previously there was no native method that checks connection status of the client and this could create some inconsistency on the code.

If you want to test please refer to this PR https://github.com/bcmi-labs/iot-cloud-remote-ios/pull/356

@alessioemireni alessioemireni self-assigned this Jul 10, 2023
Copy link
Contributor

@balsick balsick left a comment

Choose a reason for hiding this comment

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

lgtm

@alessioemireni alessioemireni force-pushed the fix/APP-478-479-isconnected branch from 4402a28 to 7a89049 Compare July 10, 2023 13:40
Copy link

@rformato rformato left a comment

Choose a reason for hiding this comment

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

lgtm

@alessioemireni alessioemireni force-pushed the feat/APP-481-mqtt-csrwithec-ios branch 2 times, most recently from a9e1e3a to ae056b5 Compare July 12, 2023 15:18
Base automatically changed from feat/APP-481-mqtt-csrwithec-ios to main July 12, 2023 15:23
@alessioemireni alessioemireni force-pushed the fix/APP-478-479-isconnected branch from 7a89049 to ed20b62 Compare July 12, 2023 15:31
@alessioemireni alessioemireni force-pushed the fix/APP-478-479-isconnected branch from ed20b62 to 1151263 Compare July 12, 2023 15:32
@alessioemireni alessioemireni merged commit d02f9d5 into main Jul 13, 2023
@alessioemireni alessioemireni deleted the fix/APP-478-479-isconnected branch July 13, 2023 07:56
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.

4 participants