renamed onewire interface
This commit is contained in:
parent
fb4c09337d
commit
3286471e50
@ -11,7 +11,7 @@
|
|||||||
{
|
{
|
||||||
"id": "c36c68d9-6182-4ae1-972d-b8b5e0cf185f",
|
"id": "c36c68d9-6182-4ae1-972d-b8b5e0cf185f",
|
||||||
"name": "oneWireInterface",
|
"name": "oneWireInterface",
|
||||||
"displayName": "One wire interface",
|
"displayName": "OWFS interface",
|
||||||
"interfaces": ["gateway"],
|
"interfaces": ["gateway"],
|
||||||
"createMethods": ["user"],
|
"createMethods": ["user"],
|
||||||
"paramTypes": [
|
"paramTypes": [
|
||||||
|
|||||||
@ -41,17 +41,12 @@ class W1 : public QObject
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
explicit W1(QObject *parent = nullptr);
|
explicit W1(QObject *parent = nullptr);
|
||||||
~W1();
|
|
||||||
|
|
||||||
QString getPath();
|
|
||||||
QStringList discoverDevices();
|
QStringList discoverDevices();
|
||||||
bool interfaceIsAvailable();
|
bool interfaceIsAvailable();
|
||||||
|
|
||||||
double getTemperature(const QString &address);
|
double getTemperature(const QString &address);
|
||||||
|
|
||||||
QList<QDir> m_w1BusMasters;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QByteArray m_path;
|
QList<QDir> m_w1BusMasters;
|
||||||
};
|
};
|
||||||
#endif // W1_H
|
#endif // W1_H
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user