Commit 25c3975c authored by Ivan Tyagov's avatar Ivan Tyagov

Add a heart beat variable which is published. Remove PubSub over Ethernet/UADP...

Add a heart beat variable which is published. Remove PubSub over Ethernet/UADP as simply not plans to use directly Ethernet directly.
parent abad3a39
......@@ -232,23 +232,11 @@ int main(int argc, char **argv)
UA_Double defaultDouble = 0;
const PublishedVariable publishedVariableArray[] = {
{
.name = "lattitude",
.description = "Lattitude",
.name = "heart_beat",
.description = "Heart beat",
.pdefaultValue = &defaultDouble,
.type = UA_TYPES[UA_TYPES_DOUBLE],
},
{
.name = "longitude",
.description = "Longitude",
.pdefaultValue = &defaultDouble,
.type = UA_TYPES[UA_TYPES_DOUBLE],
},
{
.name = "altitude",
.description = "Altitude",
.pdefaultValue = &defaultFloat,
.type = UA_TYPES[UA_TYPES_FLOAT],
},
};
UA_String transportProfile =
......@@ -257,9 +245,6 @@ int main(int argc, char **argv)
{UA_STRING_NULL , UA_STRING("opc.udp://224.0.0.22:4840/")};
UA_ServerConfig_addPubSubTransportLayer(config, UA_PubSubTransportLayerUDPMP());
#ifdef UA_ENABLE_PUBSUB_ETH_UADP
UA_ServerConfig_addPubSubTransportLayer(config, UA_PubSubTransportLayerEthernet());
#endif
addPubSubConnection(server, &transportProfile, &networkAddressUrl);
addPublishedDataSet(server);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment