K language
Constants
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| Altrc | Temperr | Humerr
Actuators
led | sound | rf | dhtype | sonar | press | motor1 | motor2 | matrix
Events
Cal | Year | Month | Day | WDay | Hour | Min | Sec | Secs | Rssi | Rssiq | Wificon | Mqttcon | Telnetcon | Eval | Ver | Sn | Wifiip | Nbttl | Nbip | Nbrtt | Nbrxudplen | Nbrxudpsid | Nbrxudpmsg | Voxcon | Voxdev | Voxcom | Voxval | Ips | Cycle | Status
System parameters
wifi | web | ser | telnet | val | status | mqttio | mqtto | bell | vox | mqtt | scroll | inverse | direct
Configuration parameters
device | disweb | disser | distel | otaupd | ntpupd | timezone | dst | mqttport | msgform | echo | sleep | trace | logser | logtel | valform | rxtrim
Operators
Any type Operators
* (multiplication)
/ (division)
% (modulo)
+ (addition)
- (subtraction)
Comparison Operators
== (equal to)
!= (not equal to)
*== (is prefix of)
==* (has suffix)
< (less than)
> (greater than)
<= (less than or equal to)
>= (greater than or equal to)
Logical Operators
! (not)
& (and)
| (or)
Commands
Actuators
Workspace
Archive
Time
date | time | HHMM | MMSS | ntp
Timings
Configuration
help | conf | hi| | sos | ota | fota
mqttserver | mqttclient | mqttuser | mqttpass | mqttin | mqttout
wifissid | wifipass | wifissid2 | wifipass2 | wifissid3 | wifipass3
login | password | bitrate | kinter
nbiot | nbport | nbserverip | nbserverport
System
stop | start | reset | reboot | webclear
NB-IoT
Data format
Constructs
() (parentheses)
[] (square brackets)
, (comma)
Iterations and temporizations
* (loop)
^ (iteration)
# (periodic)
## (delayed)
?? (list)
Communication
< (send)
tx (serial transmission)
Rx (serial reception)
Definitions
:: (link)
= (assignment)
-> (rule)
? (show)
+ (enable)
- (disable)
\ (clear)
: (activate)