Coder Social home page Coder Social logo

soki999 / iowa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ioterop/iowa

0.0 0.0 0.0 14.35 MB

This repository contains sample applications illustrating how to use the IOWA SDK as well as the Evaluation IOWA SDK. The IOWA SDK is the most compact C implementation OMA LwM2M protocol.

Home Page: https://ioterop.com/iowa

License: Other

C 99.36% CMake 0.64%

iowa's Introduction

IOWA Logo

IOWA Evaluation SDK

This repository contains an evaluation version of IoTerop's IOWA LwM2M stack, illustrating how to use the LwM2M SDK.

Please note:

Neither the SDK nor the samples are open source software but commercial software.

This code MUST NOT be used in a commercial product and is for evaluation ONLY. This code is provided as-is, under the associated license (see LICENSE.txt).

Want to buy the IOWA Commercial Version? Contact Us About Our Products.

With this code, you can jump into the Lightweight M2M protocol and validate the build and the execution of the IOWA stack on your device, but with some limitations:

IOWA Eval SDK IOWA Full SDK
Free for Evaluation purpose Contact us
IOWA-based LwM2M Client ✔️ ✔️
IOWA-based LwM2M Server ✔️
IOWA-based Bootstrap Server ✔️
LwM2M 1.0​ ✔️ ✔️
LwM2M 1.1​ ✔️
LwM2M 1.2 ✔️
TLV Data Format ✔️ ✔️
LwM2M 1.1 Data Formats​ ✔️
LwM2M 1.2 Data Formats​ ✔️
Bootstrap ​Support ✔️
Mandatory LwM2M Objects​ ✔️ ✔️
CTO IPSO Objects​ ✔️ ✔️
Other IPSO Objects​ ✔️
Custom Objects Creation ​ ✔️ ✔️
UDP Transport​ ✔️ ✔️
TCP Transport​ ✔️
WebSockets Transport​ ✔️
SMS Transport​ ✔️
COAP Block​-Wise Transfer ✔️
DTLS Support ​ ✔️ ✔️
TLS Support ​ ✔️
OSCORE ✔️
Muti Server Management ​ ✔️ ✔️
Registration Rules Configuration ​ ✔️
Server Access Control ✔️
Firmware Update​ ✔️
MQTT Channels Configuration ​ ✔️
Context Storage ✔️
Power Cycle Management ✔️
Connectivity Management ✔️
Notification Storage ✔️
Asynchronous Response Support ✔️
Payload Streaming ✔️
Source Code & C-Make​ ✔️ ✔️
Full Documentation​ ✔️
Logs ✔️ ✔️
Multithread​ Support ✔️
Python Binding ✔️
LwM2M Object Code Generation Tool ✔️

IOWA SDK Samples

Several samples are provided in this repository. Each comes with its own README explaining its usage and presenting a break down of the code.

  • 01-baseline_client: a minimal LwM2M Client connecting to one LwM2M Server and featuring only the mandatory LwM2M Objects.

  • 02-IPSO_client: a LwM2M Client featuring an IPSO Temperature Object (ID: 3303) using IOWA built-in implementation.

  • 03-custom_object_baseline: a LwM2M Client featuring an additional custom LwM2M Object.

  • 04-custom_object_dynamic: same as 03-custom_object_baseline with dynamic Resource values.

  • 05-custom_object_multiple_instances: a LwM2M Client featuring multiple instances of the same custom LwM2M Object.

  • 06-custom_object_multiple_resource_instances: a LwM2M Client featuring a custom LwM2M Object with a multiple Resource.

  • 07-secure_client_mbedtls3: a LwM2M Client using Mbed TLS 3.1.0 to secure its exchanges with the LwM2M Server. Note that this sample requires some editing before running as explained in its README.

  • 08-secure_client_tinydtls: a LwM2M Client using tinydtls to secure its exchanges with the LwM2M Server. Note that this sample does not build on Windows platforms. Also note that this sample requires some editing before running as explained in its README.

QuickStart Guide

All the samples can be built/run on Windows and Linux. Other platforms and OS are available in IoTerop's GitHub.

Tutorials

You can find some interesting tutorials on Hackster.io:

Compile Samples

Initial setup: Don't forget to clone this repository:

git clone https://github.com/IOTEROP/IOWA.git

On Linux

Prerequisites: An x86-64 computer with a Linux distribution installed, the cmake utility, the make utility and a C compiler.

To compile the 08-secure_client_tinydtls sample, you will also need git to be installed.

  1. Inside the IOWA repository, create a build folder

    mkdir build

  2. Go to this folder

    cd build

  3. Launch cmake in debug mode

    cmake -DCMAKE_BUILD_TYPE=Debug ..

    The last parameter point to the folder containing the CMakeLists.txt file of your target. In this case the one at the root of the repo.

  4. Compile the samples.

    make -j 4

    (The -j 4 parameter enables four parallel compilations, could be replaced with make -j$(nproc))

    (After making some modifications to the code, only the step 4 is required)

  5. Jump into the associated directory. E.g:

    cd samples/01-baseline_client

  6. Run the sample. E.g:

    ./baseline_client

On Windows

Using Visual Studio Code
  1. Install the Microsoft C++ compiler as explained here: https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019
    1. Select the "Build Tools for Visual Studio 2019".
    2. In the Installer, make sure the following optional features are checked:
      • MSVC v142 - VS 2019 C++ x64/x86 build tools (Note that the version may differ)
      • Windows 10 SDK
      • C++ CMake tools for Windows
  2. Install Visual Studio Code from https://code.visualstudio.com/
  3. Launch Visual Studio Code.
  4. Go to the "Extensions" panel (Ctrl+Shift+X) on the left side.
  5. Install the "C/C++", "CMake", and "CMake Tools" extensions
  6. Open the folder containing the IOWA SDK ("File" menu -> "Open Folder..." or "Ctrl+K Ctrl+O")
  7. Open the CMake panel on the left side.
  8. On the top bar of the CMake panel, click on the icon "Configure All Projects".
  9. When prompted to select a kit, choose one of the Visual Studio Build Tools.
  10. On the top bar of the CMake panel, click on the icon "Build All Projects".
  11. Click on the sample of your choice.
  12. Right-click on the application and select "Run in terminal"
Using Visual Studio with C++ support.

Visual Studio version must be at least 2017 for the CMake support.

  1. In the Visual Studio menu bar, go to "File", "Open", "Folder". Select the IOWA folder.
  2. In the "Solution Explorer" windows, right-click on "CMakeList.txt" and choose "Set as Startup Item".
  3. In the Visual Studio menu bar, go to "Build", "Build All"

IOWA Connecticut Server

You can interact with the samples or your device using the Ioterop Connecticut server. This server can get/send commands/data with your device and validate the way your code runs. (Connecticut is the LwM2M Ioterop test server where your device will be connected. This is one solution among others (e.g.: ALASKA platform, ...).

Let's Get Programming


IoTerop Logo

iowa's People

Contributors

oguiter avatar kamelazira avatar jaudiger avatar cjacquinot avatar dnav avatar slurfer71 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.