An Azure hosted internet of things (IoT) application platform.
I ended up starting again and deleting the IoT central app and the function that handles the message webhook and it all worked perfectly so not sure why the first instance wouldn't work as i followed exactly the same steps and sent exactly the same information but this time it worked.