EthercatDevice_QECRXXUN01.getSystemTemperature()

[EthercatDevice_QECRXXUN01]

Description

Get the temperature of Slave device. (unit: ℃)

Class Modules

class EthercatDevice_QECR11UN01;
/* RJ45 power [1, 1]. */
class EthercatDevice_QECR00UN01;
/* RJ45 power [0, 0]. */

Format

double getSystemTemperature();

Syntax

EthercatDevice_QECR11UN01 slave;
slave.getSystemTemperature();

Returns

Double: The temperature of Slave device. (unit: ℃)

Example

#include "Ethercat.h"

EthercatMaster master;
EthercatDevice_QECR11UN01 slave;

void setup(void) {
    Serial.begin(115200);
    while (!Serial);
    
    master.begin();
    slave.attach(0, master);
    master.start();

    Serial.println(slave.getSystemTemperature());
}

void loop() {}

Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top