use Endpoint object instead of uint64_t inside the WiflyLight library. only JNI requires uint64 access