i would like to setup the wt32i (iwrap 6.2.) module following way: after module init, it should be possible to connect within 60s interval, after that, modue should not be visible.
In iwrap datasheet, there is a following note:
Set module to pagemode 0 (Not connectable and not visible in inquiry) after 60s from module boot.
SET CONTROL INIT DELAY 0 60000 SET BT PAGEMODE 0
This command works well, but the problem is, that pagemode stay set to 0 even after module restart. So it works only once (when i manually set pagemode to 4 and reset).
Is there any way how to achive that?
please keep in mind that SET CONTROL INIT can only use one command.
Possible workaround for your scenario is to type SET CONTROL BIND which binds IWRAP commands to GPIO pins (please check User Guide paragraph 6.72):
SET CONTROL BIND 0 8 R DELAY 0 10000 SET BT PAGEMODE 0
SET CONTROL BIND 1 1 R SET BT PAGEMODE 4
SET CONTROL INIT PIO SET 9 9
in this case I binded two pins (PIO3 and PIO0), but you can configure it on your own.
Thank you, this solution works for me very well.