K language

Constants

false | true

integer

floating point

strings

Variables

Input PINs

A0 | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | D8

Output PINs

d0 | d1 | d2 | d3 | d4 | d5 | d6 | d7 | d8

Sensors

Rf | Temp | Hum | Sonar | Press | Presl | Tempb | Alt

Actuators

led | sound | rf | dhtype | sonar | press | motor1 | motor2

Events

Cal | Year | Month | Day | WDay | Hour | Min | Sec | Secs | Rssi | Wificon | Mqttcon | Telnetcon | Eval | Ver | Sn | Wifiip | Voxcon | Voxdev | Voxcom | Voxval

System parameters

wifi | web | ser | telnet | val | status | mqttio | bell | vox

Configuration parameters

device | disweb | disser | distel | otaupd | ntpupd | timezone | dst | mqttport | msgform | echo | sleep | trace | logser | logtel | valform | rxtrim

Operators

Arithmetic Operators

* (multiplication)

/ (division)

% (modulo)

+ (addition)

- (subtraction)

Comparison Operators

== (equal to)

!= (not equal to)

< (less than)

> (greater than)

<= (less than or equal to)

>= (greater than or equal to)

Logical Operators

! (not)

& (and)

^ (xor)

| (or)

Commands

Actuators

rfon | rfoff | rfch

Workspace

erase | new

Archive

save | load | merge

del | rem

type | cat

dir | ls

Time

date | time | ntp

Timings

pause | play | kill

Configuration

help | conf | hi| link | sos | ota | fota

csv | var | query | js | json

ntpserver

mqttserver | mqttclient | mqttuser | mqttpass | mqttin | mqttout

ssid | pass

wifissid | wifipass

host

login | password

voxkey

System

stop | start | reset | reboot | webclear

Constructs

() (parentheses)

[] (square brackets)

, (comma)

Timings

# (periodic)

@ (limited)

## (delayed)

?? (list)

Communication

< (send)

Definitions

:: (link)

= (assignment)

-> (rule)

? (show)

+ (enable)

- (disable)

\ (clear)

: (activate)