$rf
$rf : \Iqrf\Repository\Entities\TransceiverCurrentRf
Transceiver current entity
__construct(\Iqrf\Repository\Entities\TransceiverCurrentRf $rf, float $ledg, float $ledr, float $mcu, float $sleep, float $deepSleep) : mixed
Constructor
\Iqrf\Repository\Entities\TransceiverCurrentRf | $rf | RF current |
float | $ledg | Green LED current [µA] |
float | $ledr | Red LED current [µA] |
float | $mcu | MCU current [µA] |
float | $sleep | Sleep current [µA] |
float | $deepSleep | Deep sleep current [µA] |
fromApiResponse(array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float} $response) : \Iqrf\Repository\Entities\TransceiverCurrent
Creates a new TransceiverCurrent entity from API Response
array{currentRfTxMin: float, currentRfTxMax: float, currentRfRxStd: float, currentRfRxLp: float, currentRfRxXlp: float, currentRfReady: float, currentLEDG: float, currentLEDR: float, currentMcu: float, currentSleep: float, currentDeepSleep: float} | $response | API response body |
TransceiverCurrent entity
jsonSerialize() : array{rf: array{rx: array{std: float, lp: float, xlp: float}, tx: array{min: float, max: float}, ready: float}, ledg: float, ledr: float, mcu: float, sleep: float, deepSleep: float}
Serializes the TransceiverCurrent entity into JSON
JSON serialized TransceiverCurrent entity