mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
add restart request
This commit is contained in:
parent
34baf79810
commit
da05a1d51b
@ -292,3 +292,9 @@ void BauSystemB::addSaveRestore(SaveRestore* obj)
|
|||||||
{
|
{
|
||||||
_memory.addSaveRestore(obj);
|
_memory.addSaveRestore(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void BauSystemB::restartRequest(uint16_t asap)
|
||||||
|
{
|
||||||
|
_appLayer.restartRequest(AckRequested, LowPriority, NetworkLayerParameter, asap);
|
||||||
|
}
|
||||||
|
@ -27,6 +27,7 @@ public:
|
|||||||
void readMemory();
|
void readMemory();
|
||||||
void writeMemory();
|
void writeMemory();
|
||||||
void addSaveRestore(SaveRestore* obj);
|
void addSaveRestore(SaveRestore* obj);
|
||||||
|
void restartRequest(uint16_t asap);
|
||||||
protected:
|
protected:
|
||||||
virtual DataLinkLayer& dataLinkLayer() = 0;
|
virtual DataLinkLayer& dataLinkLayer() = 0;
|
||||||
virtual uint8_t* descriptor() = 0;
|
virtual uint8_t* descriptor() = 0;
|
||||||
@ -56,6 +57,7 @@ protected:
|
|||||||
uint8_t* data, uint8_t dataLength);
|
uint8_t* data, uint8_t dataLength);
|
||||||
void groupValueWriteIndication(uint16_t asap, Priority priority, HopCountType hopType,
|
void groupValueWriteIndication(uint16_t asap, Priority priority, HopCountType hopType,
|
||||||
uint8_t* data, uint8_t dataLength);
|
uint8_t* data, uint8_t dataLength);
|
||||||
|
|
||||||
|
|
||||||
virtual InterfaceObject* getInterfaceObject(uint8_t idx) = 0;
|
virtual InterfaceObject* getInterfaceObject(uint8_t idx) = 0;
|
||||||
void sendNextGroupTelegram();
|
void sendNextGroupTelegram();
|
||||||
|
@ -215,3 +215,9 @@ GroupObject &KnxFacade::getGroupObject(uint16_t goNr)
|
|||||||
{
|
{
|
||||||
return _bau.groupObjectTable().get(goNr);
|
return _bau.groupObjectTable().get(goNr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void KnxFacade::restart(uint16_t individualAddress)
|
||||||
|
{
|
||||||
|
_bau.restartRequest(individualAddress);
|
||||||
|
}
|
||||||
|
@ -57,7 +57,9 @@ public:
|
|||||||
uint16_t paramWord(uint32_t addr);
|
uint16_t paramWord(uint32_t addr);
|
||||||
uint32_t paramInt(uint32_t addr);
|
uint32_t paramInt(uint32_t addr);
|
||||||
GroupObject& getGroupObject(uint16_t goNr);
|
GroupObject& getGroupObject(uint16_t goNr);
|
||||||
private:
|
void restart(uint16_t individualAddress);
|
||||||
|
|
||||||
|
private:
|
||||||
BauSystemB& _bau;
|
BauSystemB& _bau;
|
||||||
uint32_t _ledPinActiveOn = LOW;
|
uint32_t _ledPinActiveOn = LOW;
|
||||||
uint32_t _ledPin = LED_BUILTIN;
|
uint32_t _ledPin = LED_BUILTIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user