User Tools

Site Tools


uphp:library_functions:library_functions

uPHP Library Reference

uPHP Library functions are functions that are written in uPHP and distributed with the WattmonOS installation. You will need to include the relevant file using include() before calling the function.

Click on the function name for further details:

FUNCTION NAMEPARAMETER(S)RETURNLIBRARYDESCRIPTION
add_cronint filename, string interval intsystemAdd a scheduled CRON script
add_roleint id, string role_name, int role_group, int role_type, int role_show, int role_def, string role_devices nonesystemAdd a system role
fgets_longint handlestringfileioRead a line without length restriction from an open file
mb_get_error_stringint errorstringmodbusGet human readable error description
mb_set_float_be_0x10int id, int bus, int reg, int val, int retriesintmodbusSet a modbus float in big endian using function 10h
mb_set_float_le_0x10int id, int bus, int reg, int val, int retriesintmodbusSet a modbus float in little endian using function 10h
mb_set_int16_0x03int id, int bus, int reg, int val, int retriesintmodbusSet a modbus device register using function 03h
mb_set_int16_0x10int id, int bus, int reg, int val, int retriesintmodbusSet a modbus device register using function 10h
mb_set_uint32_be_0x10int id, int bus, int reg, int val, int retriesintmodbusSet a modbus UINT32 in big endian using function 10h
mb_set_uint32_le_0x10int id, int bus, int reg, int val, int retriesintmodbusSet a modbus UINT32 in little endian using function 10h
quick_sortarray src_array, int sort_typearrayarraySort an array using quicksort
remove_cronint filename intsystemRemove a scheduled CRON script
smtp_mailstring to, string from, string subject, string message, string user, string password, string host, int portintsmtpSend an email over SMTP
uphp/library_functions/library_functions.txt · Last modified: 2021/09/13 05:57 (external edit)