Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

REST subscribe problems

Featured Replies

I am trying without luck to subscribe to EISY events using an Arduino program. I am trying to follow the SDK manuals examples, but I am apparently doing something wrong such that all attempts to do a rest/subscribe fail with either an error 400 or 401.

Attached is a screenshot of a Wireshark capture of Postman trying to connect to the EISY. Any idea of what I am doing wrong? I tried both port 80 and 8080. I want to get things working on Postman before I commit to coding the Arduino REST subscription/event handling.

Can someone send me Postman setup params that can launch a subscription session on EISY?

Note that I can successfully poll nodes on the EISY using the same credentials and REST, but this causes home automation reliability issues when I poll the EISY too frequently. There will be 3 Arduino systems connected to my ISY, so that is a lot of polling.

My Arduino project retrieves thermostat mode/setpoint settings from the EISY and forms binary Infrared signals that it sends to the mini-split air conditioning units in my workshop. They have no human interface other than handheld infrared remote controls.

Captured001.png

Captured002.png

  • Author

Yes, I know that a 401 error means there was a failure to authorize. The problem is that I used the same basic authorization on my EISY polling software as I am doing with the attempted REST subscription. Polling works, subscribing to EISY events does not work using the same auth code.

Once I get past the auth problem I need an example of subscribing to EISY events using REST. The EISY documentation is not too helpful for this.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.