Thanks for the post, the example didnt work but you did give me a idea, i just passed 2 values, the object and the name.
printTemperature(Probe04, "Probe04");
and on the function side :
void printTemperature(DeviceAddress deviceAddress, wchar_t deviceName)
I am keen to understand how your method works as it looks a lot neater than mine.
Thanks