top

NSERVICE

This class defines constants that are related the error codes and the events of Nservice.

Add the following line for Nservice class into a html file your own :

  script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/webapis.js">/script>

You can declare Nservice class like this :

  ex) var nservice = webapis.nservice;


Contents

Constants

NameValueDescription
ERROR_CODE_NO_ERR0There were no errors (success).
ERROR_CODE_ERR9999There was an error.
DEV_EVENT_MESSAGE_RECEIVED150Event for a message received from HHP device
DEV_EVENT_JOINED_GROUP151Event indicating HHP device joining a group.
DEV_EVENT_LEFT_GROUP152Event indicating HHP device leaving a group.
MGR_EVENT_DEV_CONNECT11Connection event
MGR_EVENT_DEV_DISCONNECT12Disconnection event