Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Reduce batch size to 4 & change messaging URL
Browse files Browse the repository at this point in the history
Batch size of 5 can cause the app to hit smartthings' 20 second process timeout ...
  • Loading branch information
David Parker authored Oct 20, 2016
1 parent 0ad4d6b commit 1d3be54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions watsoniot.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ preferences {

def getSettings() {
return [
version: "0.3.1"
version: "0.3.2"
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def initialize() {
}

def registerDevices() {
def maxDeviceRegistrations = 5
def maxDeviceRegistrations = 4
def loopCounter = 0
def deviceIds = atomicState.deviceIds
def registeredDeviceIds = atomicState.registeredDeviceIds
Expand Down Expand Up @@ -400,7 +400,7 @@ def updateDevice(device) {
}

// Update location
def uri2 = "https://${watson_iot_org}.internetofthings.ibmcloud.com/api/v0002/device/types/smartthings/devices/${device.id}/location"
def uri2 = "https://${watson_iot_org}.messaging.internetofthings.ibmcloud.com/api/v0002/device/types/smartthings/devices/${device.id}/location"
def body2 = [
latitude: location.latitude,
longitude: location.longitude
Expand Down

0 comments on commit 1d3be54

Please sign in to comment.