Git Product home page Git Product logo

cmm2esp's Introduction

CMM2ESP

Arduino code for ESP8266 connected to CMM2. It comunicates with CMM2 over serial port with default speed of 691200 baud. It knows these commands:

@dhelp

  • gets short help

@datetime

  • gets date and time in format yyyy-mm-dd hh:mm:ss

@ver

  • gets version of this firmware

@mac

  • gets MAC address of WiFi

@netinfo

  • gets info about connection to AP in format SSID, BSSID, RSI, gateway IP, network mask, own IP
  • needs to be connected

@scan

  • scans WiFi networks and returns:
    • number of networks found (n)
    • for every network number (0...n-1), SSID, BSSID, RSI
    • doesn't need to be connected

@disconnect

  • disconnects from current AP
  • returns info Disconnected

@connect(SSID, password)

  • connect to AP
  • returns info Connected to SSID, BSSID, RSI

@tcp(server:port)

  • connects to TCP server
  • connection can be broken with +++ (3 following pluses)

@http(url|split)

  • split is not mandatory, default split is 250 characters

  • send HTTP GET request to server

  • returns HTTPGET url|number of batches (n) and then n times split characters with answer

    SEND @httpget(scooterlabs.com/echo?ip)

    SEND @httpget(scooterlabs.com/echo?ip|3)

Then is here few commands for Napoleon Commander and test @speedtest

  • Just for speed measurement. Prepares random data and then send data length, packet length, number of packets, rest in last packet, you need to accept this data, on the end it sends 1 line with speed info and CRC8.
  • Next expects number of bytes to receive followed with this exact amount, againg on the end returns spped into

Napoleon Commander command

  • @NC_?, @NC_W, @NC_R, @NC_C, @NC_D, @NC_T, @NC_M, @NC_N and @NC_K. These commands are used for communication with NCudpServer.py

VERSION HISTORY

v0.66

modified NC_ commands for use with Napoleon Commander v1.26 and higher

v0.48

added tcpconnect (@tcp)
httpget renamed @hhtp
added @help
optimisation on NC commands

v0.38

first public version in own repository

cmm2esp's People

Contributors

jirsoft avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dmajoit

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.