File tree Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,15 @@ namespace models {
44
44
45
45
typedef CellularSetting GSMSetting;
46
46
typedef CellularSetting NBSetting;
47
- typedef CellularSetting CATM1Setting;
47
+
48
+ struct CATM1Setting {
49
+ char pin[8 ];
50
+ char apn[101 ]; // Max length of apn is 100 + \0
51
+ char login[32 ];
52
+ char pass[32 ];
53
+ int rat; // FIXME verify this type is correct
54
+ uint32_t band;
55
+ };
48
56
49
57
struct LoraSetting {
50
58
char appeui[17 ]; // appeui is 8 octets * 2 (hex format) + \0
@@ -54,12 +62,33 @@ namespace models {
54
62
struct NetworkSetting {
55
63
NetworkAdapter type;
56
64
union {
65
+ #if defined(BOARD_HAS_WIFI)
57
66
WiFiSetting wifi;
58
- CATM1Setting catM1;
59
- GSMSetting gsm;
60
- NBSetting nb;
67
+ # endif
68
+
69
+ # if defined(BOARD_HAS_ETHERNET)
61
70
EthernetSetting eth;
71
+ #endif
72
+
73
+ #if defined(BOARD_HAS_NB)
74
+ NBSetting nb;
75
+ #endif
76
+
77
+ #if defined(BOARD_HAS_GSM)
78
+ GSMSetting gsm;
79
+ #endif
80
+
81
+ #if defined(BOARD_HAS_CATM1_NBIOT)
82
+ CATM1Setting catm1;
83
+ #endif
84
+
85
+ #if defined(BOARD_HAS_CELLULAR)
86
+ CellularSetting cell;
87
+ #endif
88
+
89
+ #if defined(BOARD_HAS_LORA)
62
90
LoraSetting lora;
91
+ #endif
63
92
};
64
93
};
65
94
}
You can’t perform that action at this time.
0 commit comments