-
Notifications
You must be signed in to change notification settings - Fork 33
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
Calling function while subscribed to events results in timeout #35
Comments
I will check it, thanks for reporting |
@JSchaenzle I tried reproducing this and could not - I was able to call a function on the photon device after being subscribed to an event stream without any issue. I assume you are doing something wrong. If you want me I will post the full iOS Swift code + photon firmware C code I created while trying to repro this issue, so you can maybe compare against and see if you did something wrong. |
@idokleinman Thanks for checking. I don't think it's necessary for you to post your code right now. I'll keep digging into it on my side. If I can find a simple process to reproduce the issue I'll let you know. |
For reference / other users, posting the C photon firmware code I used to test this issue:
|
and the test code on iOS-land is here: no issues encountered. |
I am using the latest release of the SDK, Version 0.3.4. For some reason, if my app subscribes to an event, I cannot seem to call functions (using
callFunction
)on my device. If I do not subscribe to the event, the function calls work perfectly and the completion block is called quickly as expected. When I subscribe to an event, the subscription works fine and my app receives events published from my device, however when I call a function, the call times out after about 20 seconds. The error info is below.Has anyone experienced this? I haven't ruled out that it's something that I am doing wrong but I've been wrestling with this for a while and not making any progress. Are there any requirements about what thread you call
callFunction
from orsubscribeToEventsWithPrefix()
?From my Podfile.lock:
The text was updated successfully, but these errors were encountered: