Read data from the serial port, and send it to Flash using the event notification system.


First available in version 3.8 build 333.

Input Parameters:


Output Parameters:

No output parameters.

Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function. paramsObject [, callbackParamsObject] [, errorParamsObject] );

Synchronous Mode:

This method can only be called asynchronously.



Examples:{port:"com1", baudRate:"115200", parity:"none", dataBits:8, stopBits:1});

ssCore.SerialIO.setNotify({event:"onReceive"}, {callback:onReceiveHandler});

function onReceiveHandler(ret_obj, cb_obj, err_obj)
if (ret_obj.success)

// No data is received by onReceiveHandler function until you call
// the function.{}, {sync:false}); MUST be called asynchronously