I’d like to use the wisblock API on Arduino to have a sensor node periodically check if it is actually in sight of a gateway or not, but would like to not exclusively use confirmed uplinks to play nice with Fair Use Policies.
Is there a way that I can switch from unconfirmed to confirmed messages, and back again without having to hard/soft reset the node?
There is no need to reset to switch between confirmed and unconfirmed messages, you can switch by changing g_lorawan_settings.confirmed_msg_enabled between true (confirmed) and false (unconfirmed) just before you call send_lora_packet(g_solution_data.getBuffer(), g_solution_data.getSize());)
Excellent, yes it would be good to have an API call option for it, but your code snippet should work for my purposes just fine for now. Thank you again for your help!