Connect to nrf 52840 dongle using ble with BME280 environmental sensor

It has been a bit heavy going, I was hoping that someone had done something similar and uploaded it to a community repository.
It is sort of working so far so I don't mind sharing my experience and code