Difference between revisions of "Kameie"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
{ "settings": "[setDutyCycles|pwmOn|pwmOff]", "msgId": I, "pwmId": J, ["white": K], ["red": L], ["green": M], ["blue": N] } | { "settings": "[setDutyCycles|pwmOn|pwmOff]", "msgId": I, "pwmId": J, ["white": K], ["red": L], ["green": M], ["blue": N] } | ||
{ "success": [true|false], "communicationId": I, "pwmId": J, ["errorCode": N] } | { "success": [true|false], "communicationId": I, "pwmId": J, ["errorCode": N] } | ||
+ | |||
+ | Automatic commands | ||
+ | |||
+ | { "gpioCommand": "save", "camera": I, "gpio": J, "sequence": K } | ||
+ | { " |
Revision as of 15:02, 8 April 2020
Schema
Protocol
Authentication
{ "pin": "00000000" } { "success": [true|false] }
Manual commands
{ "command": "[preview|save|rugosity|colorChange|bubbles]", "msgId": I, "camera": J, ["prefix": "KKK"], ["left": L], ["right": M], ["junction": [true|false]] } { "success": [true|false], "communicationId": I, "camera": J, ["errorCode": N], ["avgIntensity": O], ["maxIntensity": P], ["extension": Q], ["redDiff": R], ["greenDiff": S], ["blueDiff": T], ["number": U], ["maxDimension": V] }
Configuration commands
{ "settings": "[setDutyCycles|pwmOn|pwmOff]", "msgId": I, "pwmId": J, ["white": K], ["red": L], ["green": M], ["blue": N] } { "success": [true|false], "communicationId": I, "pwmId": J, ["errorCode": N] }
Automatic commands
{ "gpioCommand": "save", "camera": I, "gpio": J, "sequence": K } { "