Git Product home page Git Product logo

java-script-simple-mqtt-device's Introduction

IoT Edge Connect

Java Script MQTT client example.

Overview

This is where some sample MQTT.js client (https://www.npmjs.com/package/mqtt/) program shows how to connect to IoT Edge Connect.

Get started

In order to start using java-script-simple-mqtt-device MQTT client, add configuration.txt file to /dev folder. It should have the following syntax:

mqtt.host = <your-domain-name>
topic.prefix = <topic-prefix>
client.id.prefix = <client-id-prefix>

Note: You should receive a configuration file from [email protected], after requesting a Sandbox.

Publish and Subscribe

You need NodeJS 12.x or newer to run the example. The recommended way to run this project is using command line:

npm install
node src/app.js

Upon running, you will be prompted to provide username and password to your Sandbox. Look for the details in the email received from [email protected], after requesting a Sandbox.

Sample users received in an email:

Device users: user_1, user1_2, user1_3, user1_4
User's default password: secret

Note: Default password is the same for all the device users.

Notice

Copyright © 2020 Akamai Technologies, Inc.

Your use of Akamai's products and services is subject to the terms and provisions outlined in Akamai's legal policies.

java-script-simple-mqtt-device's People

Contributors

tweglinski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.