Skip to content
An IoT edge interaction language compiler
C++ C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
dist
include
object/root
.gitignore
CMakeLists.txt
LICENSE
README.md
Server.h
main.cpp

README.md

Sendo

This Server is made for Sendo language. Which can be used by third party libraries to connect this server by various programming languages.

Requirements

  • C++ compiler
  • Boost library
  • MySQL database

Installation guide

By editing configurations file, You will able to compile Sendo server for your machine. And then you can execute it to run the Sendo server. After running the Sendo server you can connect it by thirt party libraries to execute queries of Sendo server.

Usage

Sendo server is a tcp socket server running on a specific port that can be connected by third party libraries to execute commands. Some of provided libraries consist of:

  • Javascript (In progress)

Example

Here is a javascript example of using Sendo which gets the commands from other devices by wifi io stream and passing them to Sendo server to execute them and answer the devices.

var Sendo = require('sendo');
var wifi = require('wifi');
var io = new wifi.inputstream();
var sendo = new Sendo.Connector("localhost", 8569);

io.on("request", function(request) {
    sendo.query(request, function(response) {
        console.log(response.toString());
    });
});
You can’t perform that action at this time.