<commit_before>var relayr = require("../");

var token =  "2r.MY-kAs-eVN6OOT_YThGH4Z9Z67Egb";


relayr.user(token, function (err, user) {
    console.log(err);
    console.log(user);

    user.ping();
    
    user.devices(function (err, devices) {
        devices.forEach(function (device) {
            if (device.model.manufacturer === "Siemens") {
                console.log(device);
            }
        });
    } );
});
<commit_msg>fixed up getUser test<commit_after>var Relayr = require("../");
var relayr = new Relayr();

var token = "<KEY>";


relayr.user(token, function (err, user) {
    console.log(err);

    
    relayr.devices(user.id, token, function (err, devices) {

        devices.forEach(function (device) {
            if (device.model.id === "ecf6cf94-cb07-43ac-a85e-dccf26b48c86") {
                console.log(device);
                relayr.connect(token, device.id);
            }
        });
        
    } );
});

relayr.on('connect', function () {
    console.log('connect');
})
relayr.on('data', function (topic, msg) {
    console.log("TOPIC:"+topic);
    console.log(msg);
});

{'fraction_non_alphanumeric': 0.17446043165467626, 'fraction_numerical': 0.018884892086330936, 'mean_word_length': 2.352409638554217, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4183774', 'n_tokens_mistral': 402, 'n_tokens_neox': 384, 'n_words': 62}