/roboshopAPI_py

Robokit netprotocol API demo written by python.

Primary LanguagePython

Robokit Netprotocol API

Python codes for Robokit Netprotocol Application Interface.

Table of Contents

Requirements

  • Python 3.x

Reference

Robokit Netprotocol 1.4.2 by PDF

Robokit Netprotocol on github

Netprotocol Basic Definations

rbkNetProtoEnums.py defines the rules of Robokit Netprotocol for packing method, unpacking method, request ID and TCP port of all connections.

It is a python achievement of:

API_PORT_ROBOD = 19200
API_PORT_STATE = 19204
API_PORT_CTRL = 19205
API_PORT_TASK = 19206
API_PORT_CONFIG = 19207
API_PORT_KERNEL = 19208
API_PORT_OTHER = 19210

Package:

packMsg(reqId, msgTyp, msg={})

Unpackage:

 unpackHead(data)

Examples