Home
last modified time | relevance | path

Searched refs:uartInstance (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/amp/jslib/src/
A Duart.js30 if (this.uartInstance === null) {
38 if (this.uartInstance === null || !data) {
45 this.uartInstance.write(data);
50 if (this.uartInstance === null) {
53 return this.uartInstance.read();
57 if (this.uartInstance === null) {
63 if (this.uartInstance === null) {
67 this.uartInstance.on(function(data, len){
73 if (this.uartInstance === null) {
76 this.uartInstance.close();
[all …]
/AliOS-Things-master/components/amp/libjs/lib/
A Duart.js26 this.uartInstance = __native.UART.open(this.options.id);
27 if (this.uartInstance === null) {
35 if (this.uartInstance === null || !data) {
38 __native.UART.write(this.uartInstance, data);
42 if (this.uartInstance === null) {
45 return __native.UART.read(this.uartInstance);
49 if (this.uartInstance === null) {
55 if (this.uartInstance === null) {
64 if (this.uartInstance === null) {
67 __native.UART.close(this.uartInstance);
[all …]
/AliOS-Things-master/components/amp/example-js/
A Devents.js4 var uartInstance = new event.EventEmitter(); variable
6 uartInstance.on('data', function(arg, arg2) {
11 uartInstance.emit('data', 'this is uart data', 'data 2');

Completed in 4 milliseconds