BT connection to RFID reader
I am trying to connect to BT RFID reader using JSR 82
String myServerUrl="btspp://" + device.getBluetoothAddress()+":5;encrypt=false;authenticate=true";
StreamConnectionNotifier notifier =(StreamConnectionNotifier) Connector.open(myServerUrl);
It gives me the following exception SecurityException: Permission Denied.
Is anybody knows something about it?
Re: BT connection to RFID reader
Ok. I did connected Nokia 6131 NFC to RFID reader and discovered service, but if I try to open connection it throws me exception:
javax.bluetooth master /slave role switch not supported
Service url discovered is:
btspp://000780803xxx:1;authenticate=false;encrypt=false;master=true
StreamConnection conn = (StreamConnection) Connector.open(myServerUrl);
And if I put
btspp://000780803xxx:1;authenticate=false;encrypt=false;master=false
it gave me Permission denied exception.