Gocator API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
GoDiscoveryExtInfo.h
Go to the documentation of this file.
1 /**
2  * @file GoDiscoveryExtInfo.h
3  * @brief Declares the GoDiscoveryExtInfo class and related types.
4  *
5  * @internal
6  * Copyright (C) 2016 by LMI Technologies Inc.
7  * Licensed under the MIT License.
8  * Redistributed files must retain the above copyright notice.
9  */
10 #ifndef GO_SDK_DISCOVERY_EXT_INFO_H
11 #define GO_SDK_DISCOVERY_EXT_INFO_H
12 
13 #include <GoSdk/GoSdkDef.h>
14 kBeginHeader()
15 
16 /**
17  * @class GoDiscoveryExtInfo
18  * @extends kObject
19  * @ingroup GoSdk-Discovery
20  * @brief Represents an extended Discovery Information object.
21  */
23 
24 /**
25  * @struct GoDiscoveryProperty
26  * @extends kValue
27  * @ingroup GoSdk-Discovery
28  * @brief Represents a property returned in an extended Discovery information message.
29  */
30 typedef struct GoDiscoveryProperty
31 {
32  kText256 name;
33  kText256 value;
35 
36 /**
37  * Gets the source device ID.
38  *
39  * @public @memberof GoDiscoveryExtInfo
40  * @version Introduced in firmware 4.3.3.124
41  * @param msg Message object.
42  * @return Source device ID.
43  */
45 
46 /**
47  * Gets the address information returned by the source device.
48  *
49  * @public @memberof GoDiscoveryExtInfo
50  * @version Introduced in firmware 4.3.3.124
51  * @param msg Message object.
52  * @return Address information.
53  */
55 
56 /**
57  * Gets a set of ports used by the source device.
58  *
59  * @public @memberof GoDiscoveryExtInfo
60  * @version Introduced in firmware 4.3.3.124
61  * @param msg Message object.
62  * @return Indicator pointer.
63  * @remark If a port has a value of k16U_NULL, then the associated port is not used.
64  */
66 
67 /**
68  * Retrieves the application version of the source device.
69  *
70  * @public @memberof GoDiscoveryExtInfo
71  * @version Introduced in firmware 4.3.3.124
72  * @param msg Message object.
73  * @return Application version.
74  */
76 
77 /**
78  * Retrieves the up time of the source device.
79  *
80  * @public @memberof GoDiscoveryExtInfo
81  * @version Introduced in firmware 4.3.3.124
82  * @param msg Message object.
83  * @return Device up time in microseconds.
84  */
86 
87 /**
88  * Retrieves the number of properties present in the extended discovery information message.
89  *
90  * @public @memberof GoDiscoveryExtInfo
91  * @version Introduced in firmware 4.3.3.124
92  * @param msg Message object.
93  * @return The property count of the extended discovery information message.
94  */
96 
97 /**
98  * Retrieves the property associated with the given index or kNULL if invalid.
99  *
100  * @public @memberof GoDiscoveryExtInfo
101  * @version Introduced in firmware 4.3.3.124
102  * @param msg Message object.
103  * @param index The index of the property to retrieve.
104  * @return The property at the given index or kNULL.
105  */
107 
108 kEndHeader()
109 #include <GoSdk/Messages/GoDiscoveryExtInfo.x.h>
110 
111 #endif
Ports used from a source device.
Definition: GoSdkDef.h:587
GoPortInfo GoDiscoveryExtInfo_Ports(GoDiscoveryExtInfo msg)
Gets a set of ports used by the source device.
k32u GoDiscoveryExtInfo_Id(GoDiscoveryExtInfo msg)
Gets the source device ID.
Represents a property returned in an extended Discovery information message.
Definition: GoDiscoveryExtInfo.h:30
GoAddressInfo GoDiscoveryExtInfo_Address(GoDiscoveryExtInfo msg)
Gets the address information returned by the source device.
const GoDiscoveryProperty * GoDiscoveryExtInfo_PropertyAt(GoDiscoveryExtInfo msg, kSize index)
Retrieves the property associated with the given index or kNULL if invalid.
kVersion GoDiscoveryExtInfo_Version(GoDiscoveryExtInfo msg)
Retrieves the application version of the source device.
Essential SDK declarations.
kSize GoDiscoveryExtInfo_PropertyCount(GoDiscoveryExtInfo msg)
Retrieves the number of properties present in the extended discovery information message.
k64u GoDiscoveryExtInfo_UpTime(GoDiscoveryExtInfo msg)
Retrieves the up time of the source device.
Represents an extended Discovery Information object.
Sensor network address settings.
Definition: GoSdkDef.h:573