Git Product home page Git Product logo

evrythng-broadcom-sdk's Introduction

EVRYTHNG Broadcom SDK

An EVRYTHNG SDK for Broadcom IoT SoC boards (based on WICED SDK).

Overview

The EVRYTHNG Broadcom SDK contains an MQTT SDK to work with the EVRYTHNG cloud as well as sample applications and unit tests.

EVRYTHNG API

You can find a programming guide in the following file:

libs/evrythng/core/README.md

Get the latest release

See our release page.

Clone

Ensure you use the --recursive option as this project depends on the EVRYTHNG C library:

git clone --recursive [email protected]:evrythng/evrythng-broadcom-sdk.git

Dependencies

  1. In order to compile the library and run the tests you should install the following dependencies on your local machine:
  2. Go to community.broadcom.com and download the latest WICED SDK. This SDK was tested with WICED SDK version 3.3.1
  3. Install on your local machine: sudo apt-get install p7zip-full

Configuring

Copy the config.mk.example file to config.mk and configure it for your environment.

Building

To build the library, demo application and tests just run:

make

To build the demo application only run:

make demo

To build the tests only run:

make tests

Additionally you can set NOISY to 1 to see more output (0 by default)

make NOISY=1

To clean the build files run:

make clean

Running and flashing the demo and tests applications

WiFi Setup

  • go to apps/demo
  • edit file wifi_config_dct.h, find lines:
#define CLIENT_AP_SSID       "<wifi ssid>"
#define CLIENT_AP_PASSPHRASE "<wifi passphrase>"

and change it to the settings of your WiFi.

EVRYTHNG Setup

Change the EVRYTHNG settings in apps/demo/evrythng.c

#define DEVICE_API_KEY "<EVRYTHNG Device Api Key>"
#define EVRYTHNG_BROADCOM_THNG "<EVRYTHNG Thng Id>"

Build and flash

  • connect the evaluation board with usb cable to your computer
  • the following command will flash the board and run application:

make demo_run

Pressing buttons on eval board will update appropriate properties, changing green/red_led properties to true/false will turn on/off the eval board leds. You can delete all of these properties before the demo and it will be created upon board connect (app sends initial values to the cloud on startup).

Creating your own application

  1. Go to apps folder and copy-rename demo application
  2. To build/flash an application run:
make your_app_name

and to flash run:

make your_app_name_run

evrythng-broadcom-sdk's People

Contributors

domguinard avatar

Watchers

albert 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.