Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var session, socket;
var pepperAddress = "pepper.local"
//追加
var alsystem;
$(function(){
session
session = new QiSession(pepperAddress);
socket = session.socket();
socket.on('connect', function() {
console.info('接続しました');
//追加
session.service("ALSystem").done(function (service) {
alsystem = service;
console.log("ALSystem取得成功");
});
}).on('error', function() {
console.error('接続できません');
location.reload();
}).on('disconnect', function() {
console.error('接続が切れました');
location.reload();
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment