Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

FFI Error while calling Sys.reboot(0)

rodrmigurodrmigu Fairfax, Virginia

Hello,

Trying to call Sys.reboot(0), I get the following: MJS callback error: failed to call FFIed function: got 1 actuals, but function takes 0 args

init.js

load('api_sys.js');
load('api_timer.js');
load('api_config.js');

Timer.set(10000, 0, function() {
    Sys.reboot(0);
}, null);

log

[Dec 21 10:52:31.310] mgos_mqtt_ev         MQTT CONNACK 0
[Dec 21 10:52:31.315] mgos_event_trigger   ev MOS4 triggered 0 handlers
[Dec 21 10:52:35.006]   at init.js:6
[Dec 21 10:52:35.015] MJS callback error: failed to call FFIed function: got 1 actuals, but function takes 0 args
[Dec 21 10:53:32.107] mqtt_handler         Send PINGREQ
[Dec 21 10:53:32.107] mgos_mqtt_ev         MQTT event: 213

Regards
Rodrigo

Comments

Sign In or Register to comment.