Skip to content
Snippets Groups Projects
Commit 29d7c439 authored by Lennard Karger's avatar Lennard Karger
Browse files

Experiment: sendMSG, getPduAdress

parent dfd962b4
No related branches found
No related tags found
3 merge requests!4PIO Projekte in main-Branch implementieren,!3Vorbereitung Main merge PIO - Projektstrukturen,!1Test Merge
......@@ -181,6 +181,10 @@ void BlePoll::setPollAddress(int chnIn, int adrIn, int areaIn, bool masterIn, bo
nak = nakIn;
}
bcPduPtr BlePoll::getPduAdress(){
return &pduOut;
}
void BlePoll::setPduAddress()
{
setPduAddress(&pduOut);
......
......@@ -264,6 +264,7 @@ private:
bool timeOut();
bool getValues(bcPduPtr pduPtr);
// Zustandsmaschine
// -----------------------------
void smInit();
......@@ -320,6 +321,7 @@ public:
void begin(ComType typeIn, int adrIn, AppType appType, dword watchDog);
void setCbDataPtr(cbDataPtr cbPtr);
bcPduPtr getPduAdress();
// --------------------------------------------------------------------------
// Konfiguration
......
......@@ -5,6 +5,7 @@
//#define SlaveACM1
bool getValues(PlpType plpType, byte *dest);
bool sendMSG(void);
void smInit();
void smCheckJobs();
void smCheckSens();
......
......@@ -262,8 +262,13 @@ void loop()
//
RawDataAG rawData;
bool sendMSG(void){
blePoll.getPduAdress()->data[4]=0000000000;
}
bool getValues(PlpType plpType, byte *dest)
{
/*
bool newData;
short i;
......@@ -288,6 +293,8 @@ bool getValues(PlpType plpType, byte *dest)
}
}
return(newData);
*/
sendMSG();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment