That looks like the right way to connect your device to a Product that has the development mode HTTP API enabled.
But, why does it say "Not Connected".
This is a UI fix we will release soon. Initially we meant for that element to tell you whether or not the device has a socket open with the platform in realtime. We found that this was distracting and then changed the behavior to reflect whether or not the device currently has a long polling connection open.
This wasn't satisfactory either, and in an upcoming release this will just include the last time the device reached the platform successfully.
Also when I go to dashboard. there is no logging happening.
What do you mean by logging? In the console of your browser?
Happy to help,