I built the Modbus 485 board and I am using the ModbusPeripheral program to connect to some equipment. The board is wired to a DC power source so I am not worried about power consumption. Also using a button to advertise won't be feasible. I need to advertise continuously whenever not connected to a phone.
I've been messing with the preprocessor definitions, timing settings and I put GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8), &advertising); in the GAPROLE_WAITING case in ModbusPeripheral.c, but every adjustment I make I think it is making it worse.
Thank you in advance.