pubnub / arduino

The Official PubNub Arduino-based API!
Other
103 stars 49 forks source link

Subscribe not working on MKR 1000 #10

Closed rjbaker closed 7 years ago

rjbaker commented 7 years ago

Hi there,

I'm having an issue subscribing and reading events using the subscribe method. It seems to continually loop through the wait/read data method, with an empty response. I used the example subscribe code provided in this repo.

If I change the below lines to simply return client.read(), then the event json is returned, however subsequent messages are incomplete.

https://github.com/pubnub/arduino/blob/master/PubNub.cpp#L169-L176

rjbaker commented 7 years ago

I've spoken to PubNub support and this is an known issue. Is there any ETA on a fix? The latest PubNub blog posts detail using this lib with an MKR1000, but only the publish method. Incidentally, this works fine 👍

MaxPresman commented 7 years ago

@rjbaker thanks for raising the issue, we are currently investigating and hope to update the thread soon.

vveljko commented 7 years ago

The latest commit should fix this and similar issues. Please try it out and let us know if it doesn't work for you.

rjbaker commented 7 years ago

Thanks @vveljko I will take a look shortly!

rjbaker commented 7 years ago

Can confirm this works! Thanks!