Commit Graph

64 Commits

Author SHA1 Message Date
Mathieu Maret
d5a8232e43 Fix reconfiguration when wifi unreachable 2017-01-28 14:30:25 +01:00
Mathieu Maret
678eafe1a5 Correct few warning 2017-01-01 23:35:19 +01:00
Mathieu Maret
f4541a6fd6 OTA does not need a reboot anymore 2016-12-14 22:57:01 +01:00
Mathieu Maret
3957d9645f mqtt deal with IRQ for GPIO 2016-12-14 00:08:47 +01:00
Mathieu Maret
80252f9307 Refactor GPIO listened/controlled configuration
And improve mqtt connection checking
2016-12-13 23:43:37 +01:00
Mathieu Maret
d20d756677 Do not display wifi psswd in serial 2016-12-09 22:56:26 +01:00
Mathieu Maret
207c104c07 Few little fix 2016-11-20 00:23:16 +01:00
Mathieu Maret
3691745aec Put config into a struct 2016-11-20 00:06:31 +01:00
Mathieu Maret
6f6c0f7525 Use template for MqttPublish functions
And rename Mqtt*Publish function into MqttPublish*
2016-11-16 16:59:17 +01:00
Mathieu Maret
3d82e2a200 Use Reprog button as setup button on long press 2016-11-16 00:00:47 +01:00
Mathieu Maret
d49e0a5fff Use MQTT only in normal mode 2016-11-15 23:53:48 +01:00
Mathieu Maret
87085fba3d Possibility to disable OTA
save ~3k
2016-10-28 18:03:36 +02:00
Mathieu Maret
640db6c27d Small Warning fix & print simplification 2016-09-28 00:34:23 +02:00
Mathieu Maret
1a7b3ec53a Use Array to define GPIO controlled by Web 2016-09-20 18:28:32 +02:00
Mathieu Maret
967c6c736f Feed Ipaddress by MQTT 2016-06-18 02:24:00 +02:00
Mathieu Maret
286844dd6d GPIO used to enter setup in now configurable 2016-06-18 01:49:29 +02:00
Mathieu Maret
5db953072d Return dryness to http and mqtt 2016-06-04 18:45:11 +02:00
Mathieu Maret
4c09dcbb24 Add the dry sensor 2016-06-02 01:31:57 +02:00
Mathieu Maret
786fedc74f Same return value for every sensor after Setup() 2016-06-02 01:28:16 +02:00
Mathieu Maret
ff4f72e1f7 Revert "Compact some code"
Arduino Serial does not really support printf
This reverts commit 85f0bf5c78.
2016-06-02 00:40:43 +02:00
Mathieu Maret
075ed120aa EEPROM have its own header 2016-06-01 15:21:32 +02:00
Mathieu Maret
7e25978455 Disable switch off of internal LED when saving power
It may disable GPIO used by sensors
2016-06-01 01:49:04 +02:00
Mathieu Maret
69fd24b756 Start loop with a measure 2016-06-01 01:23:23 +02:00
Mathieu Maret
04690a4c66 MDNS is optionnal 2016-06-01 01:22:47 +02:00
Mathieu Maret
e97777eed3 Config option to disable MDNS 2016-06-01 01:16:01 +02:00
Mathieu Maret
85f0bf5c78 Compact some code 2016-06-01 00:44:14 +02:00
Mathieu Maret
26d3deee0e Code simplification 2016-06-01 00:36:14 +02:00
Mathieu Maret
31e9c04e82 Even initialize int 2016-04-14 01:38:06 +02:00
Mathieu Maret
8101e7bd36 Simplify MQTT sensor setup 2016-04-14 01:15:42 +02:00
Mathieu Maret
10e0425acd Simplify force setup code
And make sure that previous AP is not enabled
2016-04-10 02:01:25 +02:00
Mathieu Maret
85196a7563 Fix Warnings 2016-04-07 23:52:37 +02:00
Mathieu Maret
bdbcfd25d4 DHT: get temp and humidity
And save them with mqtt
2016-04-07 15:26:01 +02:00
Mathieu Maret
9646eab78f Use MQTT in NORMAL mode only
and fix EEPROM size configuration
2016-04-07 12:24:30 +02:00
Mathieu Maret
e1673f6c22 Display configured IP value in setup page 2016-04-07 12:05:37 +02:00
Mathieu Maret
e82378e224 Save Static ip config as uint32_t 2016-04-07 02:02:51 +02:00
Mathieu Maret
132ba26720 Save ip config into eeprom 2016-04-06 19:34:29 +02:00
Mathieu Maret
fe3dba6cad Add CONFIG_ENABLE_POWER_SAVE
Enable light sleep
Switch off internal LED
Disable mDNS
2016-04-06 16:03:14 +02:00
Mathieu Maret
0190133bf3 Disable more code when bmp is not enabled 2016-04-06 15:51:27 +02:00
Mathieu Maret
2778443ccc Implement light sleep 2016-04-01 01:06:13 +02:00
Mathieu Maret
a204d6fddf Reindent 2016-04-01 01:05:29 +02:00
Mathieu Maret
0dd9901d19 Avoid mqtt communication if mqtt is not configured 2016-04-01 01:05:03 +02:00
Mathieu Maret
cdfafd2d45 Config EEPROM size like other configs 2016-03-30 00:49:57 +02:00
Mathieu Maret
efe135a801 Move configuration into a dedicated file 2016-03-30 00:44:37 +02:00
Mathieu Maret
45fac78797 bmp180 is on pins 12 14 2016-03-28 23:28:33 +02:00
Mathieu Maret
11bb75e45b Correct ENABLE_EXTRA_GPIO usage 2016-03-27 00:51:33 +01:00
Mathieu Maret
ce1f4fc3b2 bmp180: give sda,scl param in constructor 2016-03-26 15:30:18 +01:00
Mathieu Maret
55beced1f8 Make BMP180 optionnal
Save 1.5ko of ROM
2016-03-26 15:27:23 +01:00
Mathieu Maret
a990ce0055 Make Serial output optionnal
Save 2k of ROM
2016-03-26 15:07:15 +01:00
Mathieu Maret
dfb5746180 Add hostname in mqtt topics
So we are able to have several devices
2016-03-25 01:08:48 +01:00
Mathieu Maret
ff6ab5755d Show hostname of web page 2016-03-25 00:03:25 +01:00