angular-ip21

1.1.3 • Public • Published

Angular IP21

AngularJS tiny library to access Aspentech InfoPlus21 Sql Web server.

Install

npm install --save angular-ip21

Configuration

Include the module name angular-ip21 in your angular app. For example:

angular.module('app', ['angular-ip21']);

Usage

The create function accept three parameters. The config parameter is optional

ip21SqlService.create(url, port, config)

An example of utilization:

function controller(ip21SqlService) {
    var ip21Sql = ip21SqlService.create(
        "http://hostname/ProcessData/AtProcessDataREST.dll/SQL", // url
        10014,                                                         // port
        {                                                              // config
            host: "localhost",
            adsa: "CHARINT=N;CHARFLOAT=N;CHARTIME=N;CONVERTERRORS=N"
        }
    );
 
    ip21Sql.executeSelect("select name, ip_input_value from ip_analogdef")
        .then(function(data) {
            ...
        });
}

Demo

To run the demo npm start

Package Sidebar

Install

npm i angular-ip21

Weekly Downloads

7

Version

1.1.3

License

ISC

Last publish

Collaborators

  • rafaelpadovezi