Using BLE to configure Wifi Credentials on MKR1010

Has anyone done the following or a better way of doing it?
I want to configure the wifi credentials and maybe one or two other settings wirelessesly. so if i deploy a unit on site i could connect to it either via BLE and then a serial type program that prompts messages for me to input data which would be SSID and password for wifi ?