ESP32 Platform Documentation

DeviceService
in package

Provides service to store user meta

Tags
example
$meta = service('user_meta');
$meta->save( 'key', 'string/json' );
$value = $meta->find( 'key' );

Table of Contents

Properties

$deviceModel  : mixed
$protocol_27  : mixed

Methods

__construct()  : mixed
This method initializes the `User` object, retrieves the user's information, and ensures the user is valid.
getDevices()  : array<string|int, mixed>
load_devices_stats()  : mixed

Properties

Methods

__construct()

This method initializes the `User` object, retrieves the user's information, and ensures the user is valid.

public __construct() : mixed

If the user is not valid, the process is halted with an error message.

It also initializes the appropriate user_meta

Tags
throws
Exception

If the user data is invalid or missing, the action will be halted with an error message.

getDevices()

public getDevices() : array<string|int, mixed>
Return values
array<string|int, mixed>

load_devices_stats()

public load_devices_stats(mixed &$devices) : mixed
Parameters
$devices : mixed

        
On this page

Search results