PAC Control REST API

Description

Revised: 6/15/2018

Overview

This API provides secure access to a SNAP-PAC-R or -S series controller’s variable and I/O tags. Confidentiality for API transactions is provided by HTTPS. Authentication uses HTTP Basic Authentication with an API key. An API key ID is submitted in the Basic Authentication userid field and API key value in the password field.

For more information visit: developer.opto22.com

Examples

Read an array of all the integer32 variables defined in the PAC’s strategy. For example, on your SNAP-PAC-R or -S series controller at IP address 1.2.3.4, you would use the URL:

https://1.2.3.4/api/v1/device/strategy/vars/int32s

and provide appropriate authentication. The GET response will be a JSON array of name-value pairs such as:

[ { "nMyVeryFavoriteNumber": 22 },
  { "nWidgetsProducedToday": 22222 },
  { "DELAY_LOOP_TIME_IN_MSECS"  : 200 } ]

Read the engineering units (EU) of an analog input point configured in the PAC’s strategy. For an analog input (I/O point) named aiTemperatureInDegreesF, use

https://1.2.3.4/api/v1/device/strategy/ios/analogInputs/aiTemperatureInDegreesF/eu

The GET response will be a single JSON name-value pair such as:

{ "value": 72.22 }

Note on packet sizes:

When doing POSTs or GETs, the JSON payload in the body should not exceed 3k (3072 bytes).

Use this page to mock PAC Control REST API in your testing and development.

Run our mock API sample using the open source WireMock library, or in the free edition of WireMock Cloud. You'll have a working API server simulating the behavior of PAC Control REST API, which will allow you to keep building and testing even if the actual API you isn't currently available.

Related mocks

Hardware Sentry TrueSight Presentation Server REST API

Hardware Sentry TrueSight Presentation

dweet.io

Dweet.io allows users to share data from

ClearBlade API

A friendly little API to help you

MIMIC REST API

This is the API for MIMIC client to

Influx OSS API Service

Authentication <!–

Who Hosts This API

Discover the hosting provider for any

Ready to accelerate your development flow

Shorter release cycles, more predictable schedules and fewer defects in production.
Start Mocking for Free *Free forever. No credit card needed