-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathinfo.h
68 lines (56 loc) · 860 Bytes
/
info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// FILE: info.h
// AUTHOR: Steve Kemp
// VERSION: 0.0.1
// PURPOSE: Get information.
// URL: http://steve.fi/Hardware
//
// HISTORY:
// see dht.cpp file
//
#ifndef info_h
#define info_h
#if ARDUINO < 100
#include <WProgram.h>
#include <pins_arduino.h> // fix for broken pre 1.0 version - TODO TEST
#else
#include <Arduino.h>
#endif
class info
{
public:
info() {};
/*
* MAC address.
*/
String mac();
/*
* The chip ID
*/
String id();
/*
* The current IP address.
*/
String ip();
/*
* Size of flash RAM in bytes.
*/
int flash();
/*
* Speed of processor.
*/
int speed();
/*
* The hostname
*/
String hostname();
/*
* All information as a JSON array.
*/
String to_JSON();
private:
};
#endif
//
// END OF FILE
//