webapp.js.server.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leshan-bsserver-demo Show documentation
Show all versions of leshan-bsserver-demo Show documentation
A LWM2M bootstrap demonstration server running an embedded Jetty server
function server() {
riot.observable(this); // Riot provides our event emitter.
var self = this;
self.security = {};
self.init = function() {
$.get('api/server/security', function(data) {
self.security = data;
self.trigger('initialized', self.security);
}).fail(function(xhr, status, error) {
var err = "Unable to get the server info";
console.error(err, status, error, xhr.responseText);
alert(err + ": " + xhr.responseText);
});
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy