haystack

Port of haystack java toolkit. Use it to connect and work with SkySpark. Haystack is a standart for comminucations for IOT (Internet of things). SkySpark is a project to serve your IOT data and make analytics.

To use this package you need installed skyspark server (and apply a some license). Authentication methods are skipped now, so you can use this library from skyspark pub folder. Just create in you skyspark's folder root 'pub' directory and place here your app. It will be accessable by 'localhost_or_smth:80/pub/my_app.html'. For now implemented client side only, you can't use it from server or command-line apps.

Usage

A simple usage example (include this into HTML page):

import 'package:haystack/core.dart';
import 'package:haystack/hclient.dart';

final String uri = "http://localhost:8080/api/demo";
final String user = "haystack";
final String pass = "testpass";
HClient client;

main() {
  client = new HClient(uri, user, pass);
  client.open().then((_) => client.about()).then((HDict result) {
    print(result);
  });
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

haystack

Copyright (c) 2015, BAS Services & Graphics, LLC. Licensed under the Academic Free License version 3.0

haystack.hclient

Copyright (c) 2015, BAS Services & Graphics, LLC. Licensed under the Academic Free License version 3.0