background preloader

CloudMqtt

Facebook Twitter

Documentation - CloudMQTT. Create a CloudMQTT instance Create an account and login to the control panel and press Create+ to create a new instance. Choose a name for the instance and the datacenter to host the instance. To get started you need to sign up for a customer plan. What plan you want to use depend of your needs. We offer four different plans for different needs. You can try CloudMQTT for free with the plan CuteCat. The instance is immediately provisioned after sign up and you can view the instance details, such as connection information, at the details page. When you have signed up is it time to Get started with CloudMQTT with any of these guides: Users and ACL You can manage user access and acl rules to your hosted MQTT instance through our HTTP API.

Don't hesitate to contact us at support@cloudmqtt.com if you got any questions! ESP8266 programming for Cloud MQTT using Pubsubclient- Part 3 - CodeKrypt. #include <ESP8266WiFi.h> #include <PubSubClient.h> // Read the rest of the article #include <stdlib.h> const char *ssid = "SSID"; // cannot be longer than 32 characters! Const char *pass = "SSID_PASS"; // const char *mqtt_server = "m11.cloudmqtt.com"; const int mqtt_port = 13378; const char *mqtt_user = "oczjfgbx"; const char *mqtt_pass = "M80GkdpTpGH0"; const char *mqtt_client_name = "arduinoClient1"; // Client connections cant have the same connection name #define BUFFER_SIZE 100 unsigned long previousMillis = 0; const long interval = 10000; WiFiClient wclient; //Declares a WifiClient Object using ESP8266WiFi PubSubClient client(wclient, mqtt_server, mqtt_port); //instanciates client object //Function is called when, a message is recieved in the MQTT server. void callback(const MQTT::Publish& pub) { Serial.print(pub.topic()); Serial.print(" => "); if (pub.has_stream()) { uint8_t buf[BUFFER_SIZE]; int read; while (read = pub.payload_stream()->read(buf, BUFFER_SIZE)) { Serial.write(buf, read); delay(1000);

Plans - CloudMQTT.