Module: lowsys

Methods to control low.js itself
Source:

Members

(inner) codeMAC

The 12-digit code/base MAC address of the device
Properties:
Type Description
String
Source:

(inner) partitions

An object holding information about all available parititons
Properties:
Name Type Attributes Description
partitions.flash.used Number Bytes used of flash partition
partitions.flash.size Number Total size of flash partition in bytes
partitions.sdcard.used Number <optional>
Bytes used of SD card partition
partitions.sdcard.size Number <optional>
Total size of SD card partition in bytes
partitions.himem.size Number <optional>
Bytes of RAM not used by low.js and available via himemRead/himemWrite
Source:

(inner) status

An object holding status information
Properties:
Name Type Description
status.eth String Status of Ethernet interface
status.wifi String Status of Wifi interface
status.time String Status of requesting time from time server
status.sdcard String Status of SD card
Source:

(inner) status

An object holding status information
Properties:
Name Type Description
status.eth String Status of Ethernet interface
status.wifi String Status of Wifi interface
status.time String Status of requesting time from time server
status.sdcard String Status of SD card
Source:

Methods

(inner) himemRead(buffer, himemOffset, bufOffsetopt, lengthopt, callback)

Allows user program to read from the higher 4 MB of PSRAM if ESP-WROVER-B is used. This memory is not used by low.js itself because it cannot be accessed directly bei the ESP32 chip.
Parameters:
Name Type Attributes Default Description
buffer Buffer the buffer to fill
himemOffset Number the offset in high memory where to start reading
bufOffset Number <optional>
0 the offset in the buffer where to start writing to
length Number <optional>
buffer.length-bufOffset the number of bytes to read
callback HimemTransferCallback the callback to call when the data is read
Source:

(inner) himemWrite(buffer, himemOffset, bufOffsetopt, lengthopt, callback)

Allows user program to write to the higher 4 MB of PSRAM if ESP-WROVER-B is used. This memory is not used by low.js itself because it cannot be accessed directly bei the ESP32 chip.
Parameters:
Name Type Attributes Default Description
buffer Buffer the buffer with data
himemOffset Number the offset in high memory to start writing
bufOffset Number <optional>
0 the offset in the buffer where to get the data
length Number <optional>
buffer.length-bufOffset the number of bytes to write
callback HimemTransferCallback the callback to call when the data is written
Source:

(inner) setSystemTime(time)

The user program can use a RTC or GPS module to get the current time and pass it to this method to set the system time to it
Parameters:
Name Type Description
time Date the new system time
Source:

Type Definitions

HimemTransferCallback(errnullable)

Callback which is called when a transfer completed.
Parameters:
Name Type Attributes Description
err Error <nullable>
optional error
Source: