PubNub APIs with Espruino Pico #4585
Replies: 1 comment
-
Posted at 2017-10-18 by Spocki I think you need to use " instead of ', see http://www.espruino.com/Modules Posted at 2017-10-18 by sureshkm Thanks.@spocki Posted at 2017-10-19 by @gfwilliams The type of quotes shouldn't make a difference - and yes, 85k would be way too much :) The module you seem to be including is only 20k, but even so it seems like a lot. It also appears to use XMLHttpRequest, which is a browser API - so it seems unlikely it'd work. There is a REST API (https://www.pubnub.com/docs/pubnub-rest-api-documentation) so especially if you were just publishing it should be quite straightforward. But if they have an MQTT option, I'd totally suggest using that. It's a lot more standard and the MQTT module is now pretty well tested. Posted at 2017-10-19 by sureshkm Thanks for the quick reply. Sure, i'm going to use MQTT :) Posted at 2018-01-25 by sureshkm I'm using MQTT module, so closing this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-10-18 by sureshkm
Has anyone used PubNub API with Espruino Pico? Please let me know how to include the PubNub npm module or require the core JS file. Thanks in advance.
I followed http://forum.espruino.com/conversations/266254/#comment12223235 and
But it shows the error as 'You have more open brackets than close brackets. Please see the hints in the editor window'.
Beta Was this translation helpful? Give feedback.
All reactions