Lorawan_uplink mode - unconfirmed change by software on ACK

Hello,
Sometimes under some condition o want to send “CONFIRMED” uplink.

Here is what i mean by this.
My distance sensor sending “UNCONFIRMED” uplink , but when distance is let say more 2 meter i want to start sending “CONFIRMED” msg`s When distance is less then 2 meter back to sending “UNCOFIRMED”

Is it possible ?

If the distance can be determined, this is feasible

@uther can you sheed some light on how to achive it .

After sleeping, Lorawan will be reinitialized, and you can change your initialization settings here.