mainova/element-iot-bridge

There is no license information available for the latest version (1.0.3) of this package.

This package allows for accessing the API of Elment-IoT in a fail safe way.

1.0.3 2022-10-14 13:27 UTC

This package is auto-updated.

Last update: 2025-08-14 19:53:41 UTC


README

Class: \Mainova\ElementIoTBridge

Namespace: \Mainova

Methods

Details

  • File: ElementIotBridge.php
  • Package: Default
  • Class Hierarchy:
    • \Mainova\ElementIoTBridge

Methods

public request() : Object

Static public request(String  $url,   $data = null, String  $method = "GET", array  $options = []) : Object

Summary

Send a request to Element-IoT with optional HTTP Data body

Details:

Parameters:
Type Name Description
String $url API URL of Element-IoT
Object $data Optional POST Data
String $method HTTP method to use for the request
array $options Guzzle Client options used for the request

Returns: Object - URL return data or null

public getAll() : Array

Static public getAll(String  $url) : Array

Summary

Get all data points iterating over all pages

Details:

Parameters:
Type Name Description
String $url API URL of Element-IoT

Returns: Array - of data points

public getStream() : Array

Static public getStream(String $url) : Array

Summary

Get all data points using Element-IoTs Streaming API

Details:

Parameters:
Type Name Description
String $url API URL of Element-IoT

Returns: Array - of data points