Select your printer model

Parameters are refined by the selected printer.

onreceive event


Notifies an application of the contents received in the communication box.

Syntax

 
Function(data);

Parameters of callback function

Parameter: data

Object type: Object

Properties of data object

Property

Description

Object type

senderId

The member ID of the sender

String

receiverId

The member ID of the receiver

String

message

Received data

String

Supplementary explanation

  • If no member ID was specified when running openCommBox method, "" (blank character) is set in senderId.
  • If data was sent to all the members of the communication box, "" (blank character) is set in receiverId.
  • No onreceive event is notified if a communication error occurs.
    To notify the disconnection event, implement the onreconnecting event, onreconnect event, ondisconnect event.
  • If a communication error occurs and it is deemed that no recovery will take place, notify ondisconnect event.
    Since no onreceive event is notified, detect data transmission failures in ondisconnect event.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top