Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Examples: Correctly illustrate global presence listener in presence-only
Browse files Browse the repository at this point in the history
Change-Id: I9942967b42761d5a97f5d2a7d1e682446f096055
  • Loading branch information
Gabriel Schulhof committed Oct 29, 2016
1 parent 15cb267 commit 2fad1ac
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions js/client.presence-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,10 @@ function listenForPresence() {
// The bindings fill in this object
handleReceptacle,

iotivity.OCMethod.OC_REST_PRESENCE,
iotivity.OCMethod.OC_REST_DISCOVER,
iotivity.OC_RSRVD_PRESENCE_URI,

// Initialize the destination with an empty structure
{
adapter: iotivity.OCTransportAdapter.OC_DEFAULT_ADAPTER,
flags: iotivity.OCTransportFlags.OC_DEFAULT_FLAGS,
interface: 0,
port: 0,
addr: [ 0 ],
identity: [ 0 ]
},
null,
null,
iotivity.OCConnectivityType.CT_DEFAULT,
iotivity.OCQualityOfService.OC_HIGH_QOS,
Expand Down

0 comments on commit 2fad1ac

Please sign in to comment.