- GOOSE subscriber: changed maximum GoID size according to tissue 770 (129 bytes)

pull/291/head
Michael Zillgith 5 years ago
parent 7b671f3a01
commit a606848a8b

@ -40,7 +40,7 @@ prepareGooseBuffer(GoosePublisher self, CommParameters* parameters, const char*
struct sGoosePublisher { struct sGoosePublisher {
uint8_t* buffer; uint8_t* buffer;
/* uint16_t appId; */
EthernetSocket ethernetSocket; EthernetSocket ethernetSocket;
int lengthField; int lengthField;
int payloadStart; int payloadStart;
@ -50,10 +50,6 @@ struct sGoosePublisher {
char* goCBRef; char* goCBRef;
char* dataSetRef; char* dataSetRef;
/* uint16_t minTime; */
/* uint16_t maxTime; */
/* bool fixedOffs; */
uint32_t confRev; uint32_t confRev;
uint32_t stNum; uint32_t stNum;
uint32_t sqNum; uint32_t sqNum;

@ -684,7 +684,7 @@ parseGoosePayload(GooseReceiver self, uint8_t* buffer, int apduLength)
printf("GOOSE_SUBSCRIBER: Found goId\n"); printf("GOOSE_SUBSCRIBER: Found goId\n");
{ {
if (matchingSubscriber) { if (matchingSubscriber) {
if (elementLength > 65) { if (elementLength > 129) {
if (DEBUG_GOOSE_SUBSCRIBER) if (DEBUG_GOOSE_SUBSCRIBER)
printf("GOOSE_SUBSCRIBER: goId too long!\n"); printf("GOOSE_SUBSCRIBER: goId too long!\n");
} }

@ -37,7 +37,7 @@
struct sGooseSubscriber { struct sGooseSubscriber {
char goCBRef[130]; char goCBRef[130];
char datSet[130]; char datSet[130];
char goId[66]; char goId[130];
int goCBRefLen; int goCBRefLen;
uint32_t timeAllowedToLive; uint32_t timeAllowedToLive;
uint32_t stNum; uint32_t stNum;

Loading…
Cancel
Save