Skip to content

Failed to bind sockets #148

@chuncheng1010

Description

@chuncheng1010

Currently I am implementing voice talk using bluetooth mesh network based on batphone.
For bluetooth mesh network I made it.
This is my code.

server = ServalD.getServer(null, this);
server.start();
But serer.start() crashes.
This is logcat

07-11 22:14:15.185 3981-4035/com.example.lcs.bluetoothmeshchat E/AndroidRuntime: FATAL EXCEPTION: Servald
Process: com.example.lcs.bluetoothmeshchat, PID: 3981
java.lang.IllegalStateException: Failed to bind sockets
at org.servalproject.servaldna.ServalDCommand.server(Native Method)
at org.servalproject.servald.ServalD$4.run(ServalD.java:368)
at java.lang.Thread.run(Thread.java:776)

ServalDCommand.server(ServalD.this, "", null);
I think there is a problem in there.
But this method calls native method server(IJniServer callback, String keyringPin, String[] entryPins)
So Now I can not know reason.
Looking forward to your reply
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions