hmFS.SysProSetInt(key, val)
Store temporary integer, system reboot will clear.
Type
(key: string, val: number) => result
Parameters
Parameters | Description | Required | Type | Default |
---|---|---|---|---|
key | key string | yes | string | - |
val | the stored integer | yes | number | - |
result
Description | Type |
---|---|
The result of the operation, 0 means success | number |
Usage
hmFS.SysProSetInt('js_test_int', 100)
console.log(hmFS.SysProGetInt('js_test_int'))