You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: API.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,7 @@ The following event_id's are defined:
169
169
*DISCOVER- Subscribe to user initiated device discovery event
170
170
*OAUTH- Subscribe to oauth token authentication data events
171
171
*WEBHOOK- Subscribe to webhook data events
172
+
*BONJOUR- Subscribe to get responses from the bonjour mdns query
172
173
173
174
174
175
The data events will send the specific type of data, when that data changes inPG3. For example, when the user changes a custom parameter, the CUSTOMPARAMS event will be published with the current (changed) custom parameter data.
@@ -366,6 +367,7 @@ __getValidAddress(address)__ Remove characters that are considered illegal for n
366
367
* __addLogLevel__(name, level, string\_name), Add a new log level to the logger and to the list displayed to the user. 'name' is the level name string (typically all upper case like DEBUG, WARNING, etc.) 'level' is the numeric value of new level, and string_name is the string to display to the user in the log level selector. <BR> **NOTE** that this modifies the node server log level list which is stored as part of the node server configuration in PG3. Thus you should only attempt to add items to the list after the config data has been recieved from PG3. The best place to do this would be in a CONFIG event handler. <BR>**NOTE2** that there is currently no way to remove or modify an item on the list other than replacing the whole list. See __setLogList()__ below.
367
368
* __setLogList(list)__ Send the list of log levels for the frontend log level list selector. The 'list'is an array of __{display_name:LOGLEVEL}__ objects. The user will be presented with the 'display_name'and when selected, it will set the log level to LOGLEVEL. LOGLEVEL must be one of the valid levels supported by the logger or added via the addLevelName method in the logger. (DEPRECATED) <BR>Currently you have to passall values including default ones to add yours:
368
369
* __webhookResponse(response, status)__ Sends a response to the webhook request
370
+
* __bonjour()__ Sends a request to make a bonjour (mDNS) query on the local network. The response is sent back in a polyglot.BONJOUR event
0 commit comments