0
Mac에서 실행중인 Realm Object Server (192.168.100.61:9080 ip)와 PC의 Xamarin App이 있습니다. ROS에서 데이터를 저장/동기화하고 싶습니다. 코드에서 ROS에 어떻게 연결할 수 있습니까?.NET 코드 (Xamarin)에서 Realm Object Server에 연결하는 방법은 무엇입니까?
Mac에서 실행중인 Realm Object Server (192.168.100.61:9080 ip)와 PC의 Xamarin App이 있습니다. ROS에서 데이터를 저장/동기화하고 싶습니다. 코드에서 ROS에 어떻게 연결할 수 있습니까?.NET 코드 (Xamarin)에서 Realm Object Server에 연결하는 방법은 무엇입니까?
사용자를 로그인/등록하고 동기화 된 영역을 열어야합니다. 같은 뭔가 : 자세한 내용은
// pass createUser: true to register rather than login
var credentials = Credentials.UsernamePassword("[email protected]", "super-secure", createUser: false);
// Login the user
var user = await User.LoginAsync(credentials, new Uri("http://192.168.100.61:9080"));
// Create a sync configuration for the Realm
// Notice the URL uses the realm scheme and not http
var config = new SyncConfiguration(user, new Uri("realm://192.168.100.61:9080/~/myrealm"));
// Finally, get the Realm instance
// This Realm will be kept in sync with the remote one
var realm = Realm.GetInstance(config);
의 documentation을 확인하십시오.
다음은이 사이트에서 더 나은 응답을 얻는 데 도움이 될 수 있습니다. https://stackoverflow.com/help/how-to-ask – Kixoka