Unverified Commit baecf419 authored by trauter's avatar trauter Committed by GitHub
Browse files

Re-send AppSessionKey to Application server in case of connection issue (#536)



Co-authored-by: default avatarTobias Rauter <tobias.rauter@smaxtec.com>
parent ffb9ac49
......@@ -590,8 +590,6 @@ func sendFRMPayloadToApplicationServer(ctx *dataContext) error {
AesKey: ctx.DeviceSession.AppSKeyEvelope.AESKey,
},
}
ctx.DeviceSession.AppSKeyEvelope = nil
}
if ctx.ServiceProfile.AddGWMetadata {
......@@ -622,6 +620,8 @@ func sendFRMPayloadToApplicationServer(ctx *dataContext) error {
}
}(ctx.ctx, ctx.ApplicationServerClient, publishDataUpReq)
ctx.DeviceSession.AppSKeyEvelope = nil
return nil
}
......
Supports Markdown
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