Thank you for your interest in tha macchina.io Open Source Project (the "Project"). In order to clarify the intellectual property license granted with Contributions from any person or entity, Applied Informatics Software Engineering GmbH, the "Project Owner", must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Project, its users and the Project Owner; it does not
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MediaRequestHandler: public Poco::Net::HTTPRequestHandler | |
{ | |
public: | |
enum | |
{ | |
BUFFER_SIZE = 8192 | |
}; | |
MediaRequestHandler(const std::string& mediaPath): | |
_mediaPath(mediaPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Poco/Net/HTTPRequest.h> | |
#include <Poco/Net/HTTPResponse.h> | |
#include <Poco/Net/HTTPClientSession.h> | |
#include <Poco/StreamCopier.h> | |
#include <Poco/Net/HTTPCredentials.h> | |
#include <sstream> | |
#include <iostream> | |
using namespace Poco::Net; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Poco/MongoDB/Connection.h" | |
#include "Poco/MongoDB/Database.h" | |
#include "Poco/Net/SecureStreamSocket.h" | |
#include "Poco/Net/Context.h" | |
#include "Poco/Net/PrivateKeyPassphraseHandler.h" | |
#include "Poco/Net/AcceptCertificateHandler.h" | |
#include "Poco/Net/SSLManager.h" | |
#include "Poco/SharedPtr.h" | |
// ... |
I hereby claim:
- I am obiltschnig on github.
- I am obiltschnig (https://keybase.io/obiltschnig) on keybase.
- I have a public key ASBdqdjouyNkhCEhVUj3587fwAYxRkumrYwzfqhfWQDoDgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var sensors = [ | |
{ | |
name: 'temperature', | |
id: 'io.macchina.bluePillar.temperature#lamp1', | |
sensor: null, | |
validRange: { min: -40, max: 50 } | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <memory> | |
#include <iostream> | |
struct Acceleration | |
{ | |
float x; | |
float y; | |
float z; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sensorRef = serviceRegistry.findByName('io.macchina.btle.peripheral.58:2D:34:35:D7:1D'); | |
var sensor = sensorRef.instance(); | |
const CHAR_BATTERY_LEVEL = 0x0018; // characteristic for reading battery level (0-99) | |
const CHAR_NOTIFICATION = 0x0010; // characteristic for enabling temperature/humidity notifications | |
console.log('connecting...'); | |
function parseValue(str) | |
{ |
OlderNewer