@@ -179,10 +179,6 @@ impl<State> ConnectedStreamApi<State> {
179
179
PacketDestination :: Node ( id) => id,
180
180
} ;
181
181
182
- // NOTE(canardleteer): We don't warn on deprecation here, because it
183
- // remains valid for many active nodes, and
184
- // remains a part of the generated interface.
185
- #[ allow( deprecated) ]
186
182
let mut mesh_packet = protobufs:: MeshPacket {
187
183
payload_variant : Some ( protobufs:: mesh_packet:: PayloadVariant :: Decoded (
188
184
protobufs:: Data {
@@ -191,24 +187,15 @@ impl<State> ConnectedStreamApi<State> {
191
187
want_response,
192
188
reply_id : reply_id. unwrap_or ( 0 ) ,
193
189
emoji : emoji. unwrap_or ( 0 ) ,
194
- dest : 0 , // TODO change this
195
- request_id : 0 , // TODO change this
196
- source : 0 , // TODO change this
190
+ ..Default :: default ( )
197
191
} ,
198
192
) ) ,
199
- rx_time : 0 , // * not transmitted
200
- rx_snr : 0.0 , // * not transmitted
201
- hop_limit : 0 , // * not transmitted
202
- priority : 0 , // * not transmitted
203
- rx_rssi : 0 , // * not transmitted
204
- delayed : 0 , // * not transmitted [deprecated since protobufs v2.2.19]
205
- hop_start : 0 , // * set on device
206
- via_mqtt : false ,
207
193
from : own_node_id. id ( ) ,
208
194
to : packet_destination. id ( ) ,
209
195
id : generate_rand_id ( ) ,
210
196
want_ack,
211
197
channel : channel. channel ( ) ,
198
+ ..Default :: default ( )
212
199
} ;
213
200
214
201
if echo_response {
@@ -889,6 +876,7 @@ impl ConnectedStreamApi<state::Configured> {
889
876
) -> Result < ( ) , Error > {
890
877
let config_packet = protobufs:: AdminMessage {
891
878
payload_variant : Some ( protobufs:: admin_message:: PayloadVariant :: SetConfig ( config) ) ,
879
+ session_passkey : Vec :: new ( ) ,
892
880
} ;
893
881
894
882
let byte_data: EncodedMeshPacketData = config_packet. encode_to_vec ( ) . into ( ) ;
@@ -965,6 +953,7 @@ impl ConnectedStreamApi<state::Configured> {
965
953
payload_variant : Some ( protobufs:: admin_message:: PayloadVariant :: SetModuleConfig (
966
954
module_config,
967
955
) ) ,
956
+ session_passkey : Vec :: new ( ) ,
968
957
} ;
969
958
970
959
let byte_data: EncodedMeshPacketData = module_config_packet. encode_to_vec ( ) . into ( ) ;
@@ -1041,6 +1030,7 @@ impl ConnectedStreamApi<state::Configured> {
1041
1030
payload_variant : Some ( protobufs:: admin_message:: PayloadVariant :: SetChannel (
1042
1031
channel_config,
1043
1032
) ) ,
1033
+ session_passkey : Vec :: new ( ) ,
1044
1034
} ;
1045
1035
1046
1036
let byte_data: EncodedMeshPacketData = channel_packet. encode_to_vec ( ) . into ( ) ;
@@ -1108,6 +1098,7 @@ impl ConnectedStreamApi<state::Configured> {
1108
1098
) -> Result < ( ) , Error > {
1109
1099
let user_packet = protobufs:: AdminMessage {
1110
1100
payload_variant : Some ( protobufs:: admin_message:: PayloadVariant :: SetOwner ( user) ) ,
1101
+ session_passkey : Vec :: new ( ) ,
1111
1102
} ;
1112
1103
1113
1104
let byte_data: EncodedMeshPacketData = user_packet. encode_to_vec ( ) . into ( ) ;
@@ -1191,6 +1182,7 @@ impl ConnectedStreamApi<state::Configured> {
1191
1182
payload_variant : Some ( protobufs:: admin_message:: PayloadVariant :: BeginEditSettings (
1192
1183
true ,
1193
1184
) ) ,
1185
+ session_passkey : Vec :: new ( ) ,
1194
1186
} ;
1195
1187
1196
1188
let mut packet_buf = vec ! [ ] ;
@@ -1248,6 +1240,7 @@ impl ConnectedStreamApi<state::Configured> {
1248
1240
payload_variant : Some (
1249
1241
protobufs:: admin_message:: PayloadVariant :: CommitEditSettings ( true ) ,
1250
1242
) ,
1243
+ session_passkey : Vec :: new ( ) ,
1251
1244
} ;
1252
1245
1253
1246
let mut packet_buf = vec ! [ ] ;
0 commit comments