Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niklasmerz/cordova-plugin-plc4x
Unofficial PLC4X Plugin for Apache Cordova. Android for now but C experts can probably get iOS to work. PRs welcome.
https://github.com/niklasmerz/cordova-plugin-plc4x
cordova cordova-plugin plc plc4x
Last synced: 21 days ago
JSON representation
Unofficial PLC4X Plugin for Apache Cordova. Android for now but C experts can probably get iOS to work. PRs welcome.
- Host: GitHub
- URL: https://github.com/niklasmerz/cordova-plugin-plc4x
- Owner: NiklasMerz
- License: apache-2.0
- Created: 2020-01-07T21:52:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T13:32:56.000Z (almost 5 years ago)
- Last Synced: 2024-10-17T04:42:56.057Z (2 months ago)
- Topics: cordova, cordova-plugin, plc, plc4x
- Language: Java
- Homepage: https://plc4x.apache.org
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-plc4x
Read from PLCs
```javascript
PLC4X.connect(this.url, async (res) => {
console.log(res);
}, async (res) => {
console.log(res);
});let values = [
{ name: 'motor-current', fieldQuery: '%DB444.DBD8:REAL' },
{ name: 'position', fieldQuery: '%DB444.DBD0:REAL' },
{ name: 'rand_val', fieldQuery: '%DB444.DBD4:REAL' }
];PLC4X.read(this.values, (res) => {
console.log(res);
}, async (err) => {
console.log(err);
});
```