in my project i am using BlueDuino as a bluetooth interface. all my devices will connect to this BlueDuino and BlueDuino will do some certain operations based on instructions from connected devices.so in order to provide security. i need to allow connections to some particular device only. for that i need to store the mac address of each device in permanent memory. so when i device is trying to connect BlueDuino i can compare its mac with the mac in memory.and allow connection if they are same.
so i need to know the following details.
1.how to get the mac address of a connected device.
2.how to disconnect a device through program .