Files
OpenBK7231T_App/docs/commands-extended.md

29 KiB

Commands

Here is the latest, up to date command list. This file was autogenerated by running 'node scripts/getcommands.js' in the repository. All descriptions were taken from code. Do not add anything here, as it will overwritten with next rebuild.

Command Arguments Description Location
SetChannel [ChannelIndex][ChannelValue] Sets a raw channel to given value. Relay channels are using 1 and 0 values. PWM channels are within [0,100] range. Do not use this for LED control, because there is a better and more advanced LED driver with dimming and configuration memory (remembers setting after on/off), LED driver commands has 'led_' prefix. File: cmnds/cmd_channels.c
Function: CMD_SetChannel
ToggleChannel [ChannelIndex] Toggles given channel value. Non-zero becomes zero, zero becomes 1. File: cmnds/cmd_channels.c
Function: CMD_ToggleChannel
AddChannel [ChannelIndex][ValueToAdd][ClampMin][ClampMax] Adds a given value to the channel. Can be used to change PWM brightness. Clamp min and max arguments are optional. File: cmnds/cmd_channels.c
Function: CMD_AddChannel
ClampChannel [ChannelIndex][Min][Max] Clamps given channel value to a range. File: cmnds/cmd_channels.c
Function: CMD_ClampChannel
SetPinRole [PinRole][RoleIndexOrName] This allows you to set a pin role, for example a Relay role, or Button, etc. Usually it's easier to do this through WWW panel, so you don't have to use this command. File: cmnds/cmd_channels.c
Function: CMD_SetPinRole
SetPinChannel [PinRole][ChannelIndex] This allows you to set a channel linked to pin from console. Usually it's easier to do this through WWW panel, so you don't have to use this command. File: cmnds/cmd_channels.c
Function: CMD_SetPinChannel
GetChannel [ChannelIndex] Prints given channel value to console. File: cmnds/cmd_channels.c
Function: CMD_GetChannel
GetReadings Prints voltage etc readings to console. File: cmnds/cmd_channels.c
Function: CMD_GetReadings
ShortName [Name] Sets the short name of the device. File: cmnds/cmd_channels.c
Function: CMD_ShortName
FriendlyName [Name] Sets the full name of the device File: cmnds/cmd_channels.c
Function: CMD_FriendlyName
startDeepSleep NULL File: cmnds/cmd_channels.c
Function: CMD_StartDeepSleep
SetFlag [FlagIndex][1or0] Enables/disables given flag. File: cmnds/cmd_channels.c
Function: CMD_SetFlag
FullBootTime [Value] Sets time in seconds after which boot is marked as valid. This is related to emergency AP mode which is enabled by powering on/off device 5 times quickly. File: cmnds/cmd_channels.c
Function: CMD_FullBootTime
AddEventHandler [EventName][EventArgument][CommandToRun] This can be used to trigger an action on a button click, long press, etc File: cmnds/cmd_eventHandlers.c
Function: CMD_AddEventHandler
AddChangeHandler [Variable][Relation][Constant][Command] This can listen to change in channel value (for example channel 0 becoming 100), or for a voltage/current/power change for BL0942/BL0937. This supports multiple relations, like ==, !=, >=, < etc. The Variable name for channel is Channel0, Channel2, etc, for BL0XXX it can be 'Power', or 'Current' or 'Voltage' File: cmnds/cmd_eventHandlers.c
Function: CMD_AddChangeHandler
listEventHandlers Prints full list of added event handlers File: cmnds/cmd_eventHandlers.c
Function: CMD_ListEventHandlers
clearAllHandlers This clears all added event handlers File: cmnds/cmd_eventHandlers.c
Function: CMD_ClearAllHandlers
echo [Message] Sends given message back to console. File: cmnds/cmd_main.c
Function: CMD_Echo
restart Reboots the module File: cmnds/cmd_main.c
Function: CMD_Restart
clearConfig Clears all config, including WiFi data File: cmnds/cmd_main.c
Function: CMD_ClearConfig
clearAll Clears config and all remaining features, like runtime scripts, events, etc File: cmnds/cmd_main.c
Function: CMD_ClearAll
PowerSave Enable power save on N & T File: cmnds/cmd_main.c
Function: CMD_PowerSave
simonirtest Simons Special Test File: cmnds/cmd_main.c
Function: CMD_SimonTest
if [Condition]['then'][CommandA]['else'][CommandB] Executed a conditional. Condition should be single line. You must always use 'then' after condition. 'else' is optional. Use aliases or quotes for commands with spaces File: cmnds/cmd_main.c
Function: CMD_If
ota_http [HTTP_URL] Starts the firmware update procedure, the argument should be a reachable HTTP server file. You can easily setup HTTP server with Xampp, or Visual Code, or Python, etc. Make sure you are using OTA file for a correct platform (getting N platform RBL on T will brick device, etc etc) File: cmnds/cmd_main.c
Function: CMD_HTTPOTA
scheduleHADiscovery [Seconds] This will schedule HA discovery, the discovery will happen with given number of seconds, but timer only counts when MQTT is connected. It will not work without MQTT online, so you must set MQTT credentials first. File: cmnds/cmd_main.c
Function: CMD_ScheduleHADiscovery
led_dimmer [Value] set output dimmer 0..100 File: cmnds/cmd_newLEDDriver.c
Function: dimmer
add_dimmer [Value][bWrapAroundInsteadOfHold] Adds a given value to current LED dimmer. Function can wrap or clamp if max/min is exceeded. File: cmnds/cmd_newLEDDriver.c
Function: add_dimmer
led_enableAll [1or0orToggle] Power on/off LED but remember the RGB(CW) values File: cmnds/cmd_newLEDDriver.c
Function: enableAll
led_basecolor_rgb [HexValue] Puts the LED driver in RGB mode and sets given color. File: cmnds/cmd_newLEDDriver.c
Function: basecolor_rgb
led_basecolor_rgbcw set PWN color using #RRGGBB[cw][ww] File: cmnds/cmd_newLEDDriver.c
Function: basecolor_rgbcw
add_temperature [DeltaValue][bWrapAroundInsteadOfHold] Adds a given value to current LED temperature. Function can wrap or clamp if max/min is exceeded. File: cmnds/cmd_newLEDDriver.c
Function: add_temperature
led_temperature [TempValue] Toggles LED driver into temperature mode and sets given temperature. It using Home Assistant temperature range (in the range from 154-500 defined in homeassistant/util/color.py as HASS_COLOR_MIN and HASS_COLOR_MAX) File: cmnds/cmd_newLEDDriver.c
Function: temperature
led_brightnessMult [Value] Internal usage. File: cmnds/cmd_newLEDDriver.c
Function: brightnessMult
led_colorMult [Value] Internal usage. File: cmnds/cmd_newLEDDriver.c
Function: colorMult
led_saturation [Value] This is an alternate way to set the LED color. File: cmnds/cmd_newLEDDriver.c
Function: setSaturation
led_hue [Value] This is an alternate way to set the LED color. File: cmnds/cmd_newLEDDriver.c
Function: setHue
led_nextColor Sets the next color from predefined colours list. Our list is the same as in Tasmota. File: cmnds/cmd_newLEDDriver.c
Function: nextColor
led_lerpSpeed [LerpSpeed] Sets the speed of colour interpolation, where speed is defined as a number of RGB units per second, so 255 will lerp from 0 to 255 in one second File: cmnds/cmd_newLEDDriver.c
Function: lerpSpeed
led_expoMode [IntegerMode] set brightness exponential mode 0..4
e.g.:led_expoMode 4
File: cmnds/cmd_newLEDDriver.c
Function: exponentialMode
HSBColor [H][S][B] Tasmota-style colour access. Hue in 0-360 range, saturation in 0-100 and brightness in 0-100 range. File: cmnds/cmd_newLEDDriver.c
Function: LED_SetBaseColor_HSB
HSBColor1 [Hue] Tasmota-style colour access. Sets hue in 0 to 360 range. File: cmnds/cmd_newLEDDriver.c
Function: setHue
HSBColor2 [Saturation] Tasmota-style colour access. Set saturation in 0 to 100 range. File: cmnds/cmd_newLEDDriver.c
Function: setSaturation
HSBColor3 [Brightness] Tasmota-style colour access. Sets brightness in 0 to 100 range. File: cmnds/cmd_newLEDDriver.c
Function: setBrightness
led_finishFullLerp This will force-finish LED color interpolation. You can call it after setting the colour to skip the interpolation/smooth transition time. Of course, it makes only sense if you enabled smooth colour transitions. File: cmnds/cmd_newLEDDriver.c
Function: led_finishFullLerp
addRepeatingEvent [IntervalSeconds][RepeatsOr-1][CommandToRun] Starts a timer/interval command. Use 'backlog' to fit multiple commands in a single string. File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_AddRepeatingEvent
addRepeatingEventID [IntervalSeconds][RepeatsOr-1][UserID][CommandToRun] as addRepeatingEvent, but with a given ID. You can later cancel it with cancelRepeatingEvent.
e.g.:addRepeatingEventID 2 -1 123 Power0 Toggle
File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_AddRepeatingEvent
cancelRepeatingEvent [UserIDInteger] Stops a given repeating event with a specified ID File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_CancelRepeatingEvent
clearRepeatingEvents Clears all repeating events. File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_ClearRepeatingEvents
listRepeatingEvents lists all repeating events File: cmnds/cmd_repeatingEvents.c
Function: RepeatingEvents_Cmd_ListRepeatingEvents
startScript [FileName][Label][UniqueID] Starts a script thread from given file, at given label - can be * for whole file, with given unique ID File: cmnds/cmd_script.c
Function: CMD_StartScript
stopScript [UniqueID] Force-stop given script thread by ID File: cmnds/cmd_script.c
Function: CMD_StopScript
stopAllScripts Stops all running scripts File: cmnds/cmd_script.c
Function: CMD_StopAllScripts
listScripts Lists all running scripts. File: cmnds/cmd_script.c
Function: CMD_ListScripts
goto [LabelStr] Script-only command. IF single argument is given, then goes to given label from within current script file. If two arguments are given, then jumps to any other script file by label - first argument is file, second label File: cmnds/cmd_script.c
Function: CMD_GoTo
delay_s [ValueSeconds] Script-only command. Pauses current script thread for given amount of seconds. File: cmnds/cmd_script.c
Function: CMD_Delay_s
delay_ms [ValueMS] Script-only command. Pauses current script thread for given amount of ms. File: cmnds/cmd_script.c
Function: CMD_Delay_ms
return Script-only command. Currently it just stops totally current script thread. File: cmnds/cmd_script.c
Function: CMD_Return
resetSVM Resets all SVM and clears all scripts. File: cmnds/cmd_script.c
Function: CMD_resetSVM
sendGet [TargetURL] Sends a HTTP GET request to target URL. May include GET arguments. Can be used to control devices by Tasmota HTTP protocol. Command supports argument expansion, so $CH11 changes to value of channel 11, etc, etc. File: cmnds/cmd_send.c
Function: CMD_SendGET
power [OnorOfforToggle] Tasmota-style POWER command. Should work for both LEDs and relay-based devices. You can write POWER0, POWER1, etc to access specific relays. File: cmnds/cmd_tasmota.c
Function: power
powerStateOnly ensures that device is on or off without changing pwm values File: cmnds/cmd_tasmota.c
Function: powerStateOnly
powerAll set all outputs File: cmnds/cmd_tasmota.c
Function: powerAll
color [HexString] set PWN color using #RRGGBB[cw][ww]. Do not use it. Use led_basecolor_rgb File: cmnds/cmd_tasmota.c
Function: color
backlog [string of commands separated with ;] run a sequence of ; separated commands File: cmnds/cmd_tasmota.c
Function: cmnd_backlog
exec [Filename] exec - run autoexec.bat or other file from LFS if present File: cmnds/cmd_tasmota.c
Function: cmnd_lfsexec
lfs_test1 [FileName] Tests the LFS file reading feature. File: cmnds/cmd_tasmota.c
Function: cmnd_lfs_test1
lfs_test2 [FileName] Tests the LFS file reading feature. File: cmnds/cmd_tasmota.c
Function: cmnd_lfs_test2
lfs_test3 [FileName] Tests the LFS file reading feature. File: cmnds/cmd_tasmota.c
Function: cmnd_lfs_test3
SSID1 [ValueString] Sets the SSID of target WiFi. Command keeps Tasmota syntax. File: cmnds/cmd_tasmota.c
Function: cmnd_SSID1
Password1 [ValueString] Sets the Pass of target WiFi. Command keeps Tasmota syntax File: cmnds/cmd_tasmota.c
Function: cmnd_Password1
MqttHost [ValueString] Sets the MQTT host. Command keeps Tasmota syntax File: cmnds/cmd_tasmota.c
Function: cmnd_MqttHost
MqttUser [ValueString] Sets the MQTT user. Command keeps Tasmota syntax File: cmnds/cmd_tasmota.c
Function: cmnd_MqttUser
MqttPassword [ValueString] Sets the MQTT pass. Command keeps Tasmota syntax File: cmnds/cmd_tasmota.c
Function: cmnd_MqttPassword
MqttClient [ValueString] Sets the MQTT client. Command keeps Tasmota syntax File: cmnds/cmd_tasmota.c
Function: cmnd_MqttClient
aliasMem Internal usage only. See docs for 'alias' command. File: cmnds/cmd_test.c
Function: runcmd
alias [Alias][Command with spaces] add an aliased command, so a command with spaces can be called with a short, nospaced alias File: cmnds/cmd_test.c
Function: alias
testMallocFree Test malloc and free functionality to see if the device crashes File: cmnds/cmd_test.c
Function: testMallocFree
testRealloc Test realloc and free functions to see if the device crashes File: cmnds/cmd_test.c
Function: testRealloc
testJSON Test the JSON library File: cmnds/cmd_test.c
Function: testJSON
testLog Do some test printfs to log with integer and a float File: cmnds/cmd_test.c
Function: testLog
testFloats Do some more test printfs with floating point numbers File: cmnds/cmd_test.c
Function: testFloats
testArgs Test tokenizer for args and print back all the given args to console File: cmnds/cmd_test.c
Function: testArgs
testStrdup Test strdup function to see if it allocs news string correctly, also test freeing the string File: cmnds/cmd_test.c
Function: testStrdup
PowerSet Sets current power value for calibration File: driver/drv_bl0937.c
Function: BL0937_PowerSet
VoltageSet Sets current V value for calibration File: driver/drv_bl0937.c
Function: BL0937_VoltageSet
CurrentSet Sets current I value for calibration File: driver/drv_bl0937.c
Function: BL0937_CurrentSet
PREF Sets the calibration multiplier File: driver/drv_bl0937.c
Function: BL0937_PowerRef
VREF Sets the calibration multiplier File: driver/drv_bl0937.c
Function: BL0937_VoltageRef
IREF Sets the calibration multiplier File: driver/drv_bl0937.c
Function: BL0937_CurrentRef
PowerMax [limit] Sets Maximum power value measurement limiter File: driver/drv_bl0937.c
Function: BL0937_PowerMax
EnergyCntReset Reset Energy Counter File: driver/drv_bl_shared.c
Function: BL09XX_ResetEnergyCounter
SetupEnergyStats [Enable1or0][SampleTime][SampleCount] Setup Energy Statistic Parameters: [enable<0 1>] [sample_time<10..900>] [sample_count<10..180>]
ConsumptionThresold [FloatValue] Setup value for automatic save of consumption data [1..100] File: driver/drv_bl_shared.c
Function: BL09XX_SetupConsumptionThreshold
BP1658CJ_RGBCW [HexColor] Don't use it. It's for direct access of BP1658CJ driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb File: driver/drv_bp1658cj.c
Function: BP1658CJ_RGBCW
BP1658CJ_Map [Ch0][Ch1][Ch2][Ch3][Ch4] Maps the RGBCW values to given indices of BP1658CJ channels. This is because BP5758D channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. File: driver/drv_bp1658cj.c
Function: BP1658CJ_Map
BP5758D_RGBCW [HexColor] Don't use it. It's for direct access of BP5758D driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb File: driver/drv_bp5758d.c
Function: BP5758D_RGBCW
BP5758D_Map [Ch0][Ch1][Ch2][Ch3][Ch4] Maps the RGBCW values to given indices of BP5758D channels. This is because BP5758D channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. File: driver/drv_bp5758d.c
Function: BP5758D_Map
BP5758D_Current [MaxCurrent] Sets the maximum current limit for BP5758D driver File: driver/drv_bp5758d.c
Function: BP5758D_Current
setButtonColor [ButtonIndex][Color] Sets the colour of custom scriptable HTTP page button File: driver/drv_httpButtons.c
Function: CMD_setButtonColor
setButtonCommand [ButtonIndex][Command] Sets the command of custom scriptable HTTP page button File: driver/drv_httpButtons.c
Function: CMD_setButtonCommand
setButtonLabel [ButtonIndex][Label] Sets the label of custom scriptable HTTP page button File: driver/drv_httpButtons.c
Function: CMD_setButtonLabel
setButtonEnabled [ButtonIndex][1or0] Sets the visibility of custom scriptable HTTP page button File: driver/drv_httpButtons.c
Function: CMD_setButtonEnabled
IRSend [PROT-ADDR-CMD-REP] Sends IR commands in the form PROT-ADDR-CMD-REP, e.g. NEC-1-1A-0 File: driver/drv_ir.cpp
Function: IR_Send_Cmd
IREnable [Str][1or0] Enable/disable aspects of IR. IREnable RXTX 0/1 - enable Rx whilst Tx. IREnable [protocolname] 0/1 - enable/disable a specified protocol File: driver/drv_ir.cpp
Function: IR_Enable
startDriver [DriverName] Starts driver File: driver/drv_main.c
Function: DRV_Start
stopDriver [DriverName] Stops driver File: driver/drv_main.c
Function: DRV_Stop
ntp_timeZoneOfs [Value] Sets the time zone offset in hours. Also supports HH:MM syntax if you want to specify value in minutes. For negative values, use -HH:MM syntax, for example -5:30 will shift time by 5 hours and 30 minutes negative. File: driver/drv_ntp.c
Function: NTP_SetTimeZoneOfs
ntp_setServer [ServerIP] Sets the NTP server File: driver/drv_ntp.c
Function: NTP_SetServer
ntp_info Display NTP related settings File: driver/drv_ntp.c
Function: NTP_Info
toggler_enable [1or0] Sets the given output ON or OFF. handles toggler_enable0, toggler_enable1, etc File: driver/drv_pwmToggler.c
Function: Toggler_EnableX
toggler_set [Value] Sets the VALUE of given output. Handles toggler_set0, toggler_set1, etc. The last digit after command name is changed to slot index. File: driver/drv_pwmToggler.c
Function: Toggler_SetX
toggler_channel [ChannelIndex] handles toggler_channel0, toggler_channel1. Sets channel linked to given toggler slot. File: driver/drv_pwmToggler.c
Function: Toggler_ChannelX
toggler_name Handles toggler_name0, toggler_name1, etc. Sets the name of a toggler for GUI. File: driver/drv_pwmToggler.c
Function: Toggler_NameX
SM16703P_Test qq File: driver/drv_ucs1912.c
Function: SM16703P_Test
SM16703P_Send NULL File: driver/drv_sm16703P.c
Function: SM16703P_Send_Cmd
SM16703P_Test_3xZero NULL File: driver/drv_sm16703P.c
Function: SM16703P_Test_3xZero
SM16703P_Test_3xOne NULL File: driver/drv_sm16703P.c
Function: SM16703P_Test_3xOne
SM2135_RGBCW [HexColor] Don't use it. It's for direct access of SM2135 driver. You don't need it because LED driver automatically calls it, so just use led_basecolor_rgb File: driver/drv_sm2135.c
Function: SM2135_RGBCW
SM2135_Map [Ch0][Ch1][Ch2][Ch3][Ch4] Maps the RGBCW values to given indices of SM2135 channels. This is because SM2135 channels order is not the same for some devices. Some devices are using RGBCW order and some are using GBRCW, etc, etc. File: driver/drv_sm2135.c
Function: SM2135_Map
SM2135_Current [Value] Sets the maximum current for LED driver. File: driver/drv_sm2135.c
Function: SM2135_Current
obkDeviceList Generate the SSDP list of OpenBeken devices found on the network. File: driver/drv_ssdp.c
Function: Cmd_obkDeviceList
DGR_SendPower [GroupName][ChannelValues][ChannelsCount] Sends a POWER message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit. File: driver/drv_tasmotaDeviceGroups.c
Function: CMD_DGR_SendPower
DGR_SendBrightness [GroupName][Brightness] Sends a Brightness message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit. File: driver/drv_tasmotaDeviceGroups.c
Function: CMD_DGR_SendBrightness
DGR_SendRGBCW [GroupName][HexRGBCW] Sends a RGBCW message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit. File: driver/drv_tasmotaDeviceGroups.c
Function: CMD_DGR_SendRGBCW
DGR_SendFixedColor [GroupName][TasColorIndex] Sends a FixedColor message to given Tasmota Device Group with no reliability. Requires no prior setup and can control any group, but won't retransmit. File: driver/drv_tasmotaDeviceGroups.c
Function: CMD_DGR_SendFixedColor
tuyaMcu_testSendTime Sends a example date by TuyaMCU to clock/callendar MCU File: driver/drv_tuyaMCU.c
Function: TuyaMCU_Send_SetTime_Example
tuyaMcu_sendCurTime Sends a current date by TuyaMCU to clock/callendar MCU. Time is taken from NTP driver, so NTP also should be already running. File: driver/drv_tuyaMCU.c
Function: TuyaMCU_Send_SetTime_Current
tuyaMcu_fakeHex [HexString] Spoofs a fake hex packet so it looks like TuyaMCU send that to us. Used for testing. File: driver/drv_tuyaMCU.c
Function: TuyaMCU_Fake_Hex
linkTuyaMCUOutputToChannel [dpId][varType][channelID] Used to map between TuyaMCU dpIDs and our internal channels. Mapping works both ways. DpIDs are per-device, you can get them by sniffing UART communication. Vartypes can also be sniffed from Tuya. VarTypes can be following: 0-raw, 1-bool, 2-value, 3-string, 4-enum, 5-bitmap File: driver/drv_tuyaMCU.c
Function: TuyaMCU_LinkTuyaMCUOutputToChannel
tuyaMcu_setDimmerRange [Min][Max] Set dimmer range used by TuyaMCU File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SetDimmerRange
tuyaMcu_sendHeartbeat Send heartbeat to TuyaMCU File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendHeartbeat
tuyaMcu_sendQueryState Send query state command File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendQueryState
tuyaMcu_sendProductInformation Send qqq File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendQueryProductInformation
tuyaMcu_sendState Send set state command File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendStateCmd
tuyaMcu_sendMCUConf Send MCU conf command File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SendMCUConf
fakeTuyaPacket File: driver/drv_tuyaMCU.c
Function: TuyaMCU_FakePacket
tuyaMcu_setBaudRate [BaudValue] Sets the baud rate used by TuyaMCU UART communication. Default value is 9600. File: driver/drv_tuyaMCU.c
Function: TuyaMCU_SetBaudRate
tuyaMcu_sendRSSI NULL File: driver/drv_tuyaMCU.c
Function: Cmd_TuyaMCU_Send_RSSI
uartSendHex [HexString] Sends raw data by UART, can be used to send TuyaMCU data, but you must write whole packet with checksum yourself File: driver/drv_tuyaMCU.c
Function: CMD_UART_Send_Hex
uartSendASCII [AsciiString] Sends given string by UART. File: driver/drv_uart.c
Function: CMD_UART_Send_ASCII
UCS1912_Test File: driver/drv_ucs1912.c
Function: UCS1912_Test
lcd_clearAndGoto Clears LCD and go to pos File: i2c/drv_i2c_lcd_pcf8574t.c
Function: DRV_I2C_LCD_PCF8574_ClearAndGoTo
lcd_goto Go to position on LCD File: i2c/drv_i2c_lcd_pcf8574t.c
Function: DRV_I2C_LCD_PCF8574_GoTo
lcd_print Prints a string on the LCD File: i2c/drv_i2c_lcd_pcf8574t.c
Function: DRV_I2C_LCD_PCF8574_Print
lcd_clear Clears the LCD File: i2c/drv_i2c_lcd_pcf8574t.c
Function: DRV_I2C_LCD_PCF8574_Clear
addI2CDevice_TC74 Adds a new I2C device - TC74 File: i2c/drv_i2c_main.c
Function: DRV_I2C_AddDevice_TC74
addI2CDevice_MCP23017 Adds a new I2C device - MCP23017 File: i2c/drv_i2c_main.c
Function: DRV_I2C_AddDevice_MCP23017
addI2CDevice_LCM1602 Adds a new I2C device - LCM1602 File: i2c/drv_i2c_main.c
Function: DRV_I2C_AddDevice_LCM1602
addI2CDevice_LCD_PCF8574 Adds a new I2C device - PCF8574 File: i2c/drv_i2c_main.c
Function: DRV_I2C_AddDevice_PCF8574
MCP23017_MapPinToChannel Maps port expander bit to OBK channel File: i2c/drv_i2c_main.c
Function: DRV_I2C_MCP23017_MapPinToChannel
lfssize [MaxSize] Log or Set LFS size - will apply and re-format next boot, usage setlfssize 0x10000 File: littlefs/our_lfs.c
Function: CMD_LFS_Size
lfsunmount Un-mount LFS File: littlefs/our_lfs.c
Function: CMD_LFS_Unmount
lfsmount Mount LFS File: littlefs/our_lfs.c
Function: CMD_LFS_Mount
lfsformat Unmount and format LFS. Optionally add new size as argument File: littlefs/our_lfs.c
Function: CMD_LFS_Format
loglevel [Value] Correct values are 0 to 7. Default is 3. Higher value includes more logs. Log levels are: ERROR = 1, WARN = 2, INFO = 3, DEBUG = 4, EXTRADEBUG = 5. WARNING: you also must separately select logging level filter on web panel in order for more logs to show up there File: logging/logging.c
Function: log_command
logfeature [Index][1or0] set log feature filter, as an index and a 1 or 0 File: logging/logging.c
Function: log_command
logtype [TypeStr] logtype direct all - direct logs only to serial immediately
logdelay [Value] Value is a number of ms. This will add an artificial delay in each log call. Useful for debugging. This way you can see step by step what happens. File: logging/logging.c
Function: log_command
publish [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. You can use argument expansion here, so $CH11 will change to value of the channel 11 File: mqtt/new_mqtt.c
Function: MQTT_PublishCommand
publishInt [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. You can use argument expansion here, so $CH11 will change to value of the channel 11. This version of command publishes an integer, so you can also use math expressions like $CH10*10, etc. File: mqtt/new_mqtt.c
Function: MQTT_PublishCommand
publishFloat [Topic][Value] Publishes data by MQTT. The final topic will be obk0696FB33/[Topic]/get. You can use argument expansion here, so $CH11 will change to value of the channel 11. This version of command publishes an float, so you can also use math expressions like $CH10*0.0, etc. File: mqtt/new_mqtt.c
Function: MQTT_PublishCommand
publishAll Starts the step by step publish of all available values File: mqtt/new_mqtt.c
Function: MQTT_PublishAll
publishChannels Starts the step by step publish of all channel values File: mqtt/new_mqtt.c
Function: MQTT_PublishChannels
publishBenchmark File: mqtt/new_mqtt.c
Function: MQTT_StartMQTTTestThread
mqtt_broadcastInterval [ValueSeconds] If broadcast self state every 60 seconds/minute is enabled in flags, this value allows you to change the delay, change this 60 seconds to any other value in seconds. This value is not saved, you must use autoexec.bat or short startup command to execute it on every reboot. File: mqtt/new_mqtt.c
Function: MQTT_SetBroadcastInterval
mqtt_broadcastItemsPerSec [PublishCountPerSecond] If broadcast self state (this option in flags) is started, then gradually device info is published, with a speed of N publishes per second. Do not set too high value, it may overload LWIP MQTT library. This value is not saved, you must use autoexec.bat or short startup command to execute it on every reboot. File: mqtt/new_mqtt.c
Function: MQTT_SetMaxBroadcastItemsPublishedPerSecond
showgpi NULL log stat of all GPIs File: new_pins.c
Function: showgpi
setChannelType [ChannelIndex][TypeString] Sets a custom type for channel. Types are mostly used to determine how to display channel value on GUI File: new_pins.c
Function: CMD_SetChannelType
showChannelValues log channel values File: new_pins.c
Function: CMD_ShowChannelValues
setButtonTimes [ValLongPress][ValShortPress][ValRepeat] Each value is times 100ms, so: SetButtonTimes 2 1 1 means 200ms long press, 100ms short and 100ms repeat File: new_pins.c
Function: CMD_SetButtonTimes
setButtonHoldRepeat [Value] Sets just the hold button repeat time, given value is times 100ms, so write 1 for 100ms, 2 for 200ms, etc File: new_pins.c
Function: CMD_setButtonHoldRepeat