Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e7f0639
Update to current version of SPIFFS (#1949)
pjsg May 21, 2017
7dae523
Deprecate xyz.init() in favor of xyz.setup(), removing inherent i2c c…
devsaurus May 21, 2017
7b1f022
Removed wifi station event monitor (#1900)
dnc40085 May 21, 2017
169cb69
Add event callbacks to wifi.sta.config() and wifi.ap.config() and mor…
dnc40085 May 21, 2017
e90ffb4
Add mcp4725 module (#1966)
dnc40085 May 21, 2017
2c55358
Fixed incorrect documentation for wifi.sta.setaplimit (#1986)
dnc40085 May 24, 2017
216b820
Ensure standard DHCP message length when sending response to clients …
devsaurus May 25, 2017
438f160
Only handle errors if we have not parsed a complete object (#1999)
pjsg Jun 18, 2017
827642b
Version 2.0 of the Lua Develoer FAQ (#1899)
TerryE Jun 19, 2017
435a4cf
backport fix for https://github.com/espressif/esp-idf/issues/631 (#2006)
devsaurus Jun 20, 2017
26df4a3
Change default flash mode to 'dio' in fw image header (#2013)
devsaurus Jun 25, 2017
583afc0
Remove hardware FAQ, fixes #2015
marcelstoer Jun 27, 2017
4095c26
Update documentation for wifi.sta.setaplimit() (#2017)
dnc40085 Jun 28, 2017
e2fc37f
Removed code allowing argument style station configuration (#2018)
dnc40085 Jun 29, 2017
15b4fa2
Call HTTP callback in all cases (#2020)
HHHartmann Jul 1, 2017
4ce2d68
Add missing period
marcelstoer Jul 1, 2017
2061167
Add check for unresolved-but-unused symbols at build.
jmattsson Jul 3, 2017
ea4d337
Cleaned up sjson module build.
jmattsson Jul 3, 2017
0c315ed
Merge pull request #2024 from DiUS/sjson_undefined_symbol_fix
Jul 4, 2017
c01f653
Unbreak build when SPIFFS_CACHE==0. (#2028)
Jul 5, 2017
761c9df
Try to fix the blocksize issues
pjsg Jul 7, 2017
2e33abe
Modify wifi.sta.get*config() to return AP's MAC (#2026)
dnc40085 Jul 8, 2017
9edcce5
Update wifi.sta.config to save configuration to flash by default (#1998)
dnc40085 Jul 8, 2017
864bcdb
Merge pull request #2038 from pjsg/spiffs-blocksize
Jul 12, 2017
d93465c
Add tracking and control of the rate error in the clock crystal. (#1697)
pjsg Jul 18, 2017
e09e830
Fixed alignment assumptions in SHA2 update. (#2034)
Jul 31, 2017
61562b4
Fix typo in code sample (#2063)
wolfg1969 Aug 5, 2017
295e640
Comment out pmsleep and timer_suspend options in user_config.h
dnc40085 Aug 5, 2017
c9e8621
fix for travisCI
dnc40085 Aug 5, 2017
fee5608
Merge pull request #2064 from dnc40085/dev_disable_pmsleep_and_timer_…
TerryE Aug 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ endef

$(BINODIR)/%.bin: $(IMAGEODIR)/%.out
@mkdir -p $(BINODIR)
$(ESPTOOL) elf2image $< -o $(FIRMWAREDIR)
@$(NM) $< | grep -w U && { echo "Firmware has undefined (but unused) symbols!"; exit 1; } || true
$(ESPTOOL) elf2image --flash_mode dio --flash_freq 40m $< -o $(FIRMWAREDIR)

#############################################################
# Rules base
Expand Down
10 changes: 6 additions & 4 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ SUBDIRS= \
websocket \
swTimer \
misc \
pm \
pm \
sjson \


endif # } PDIR
Expand Down Expand Up @@ -94,14 +95,15 @@ COMPONENTS_eagle.app.v6 = \
dhtlib/libdhtlib.a \
tsl2561/tsl2561lib.a \
http/libhttp.a \
pm/libpm.a \
pm/libpm.a \
websocket/libwebsocket.a \
esp-gdbstub/libgdbstub.a \
net/libnodemcu_net.a \
mbedtls/libmbedtls.a \
mbedtls/libmbedtls.a \
modules/libmodules.a \
swTimer/libswtimer.a \
misc/libmisc.a \
misc/libmisc.a \
sjson/libsjson.a \


# Inspect the modules library and work out which modules need to be linked.
Expand Down
20 changes: 18 additions & 2 deletions app/crypto/sha2.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
*
*/

/* ESP8266-specific tweaks by Johny Mattsson <[email protected]> */

#include "user_config.h"

#ifdef SHA2_ENABLE
Expand Down Expand Up @@ -491,7 +493,14 @@ void ICACHE_FLASH_ATTR SHA256_Update(SHA256_CTX* context, const sha2_byte *data,
}
while (len >= SHA256_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
SHA256_Transform(context, (sha2_word32*)data);
if ((int)data & (sizeof(sha2_word32)-1))
{
// have to bounce via buffer, otherwise we'll hit unaligned load exception
MEMCPY_BCOPY(context->buffer, data, SHA256_BLOCK_LENGTH);
SHA256_Transform(context, (sha2_word32*)context->buffer);
}
else
SHA256_Transform(context, (sha2_word32*)data);
context->bitcount += SHA256_BLOCK_LENGTH << 3;
len -= SHA256_BLOCK_LENGTH;
data += SHA256_BLOCK_LENGTH;
Expand Down Expand Up @@ -782,7 +791,14 @@ void ICACHE_FLASH_ATTR SHA512_Update(SHA512_CTX* context, const sha2_byte *data,
}
while (len >= SHA512_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
SHA512_Transform(context, (sha2_word64*)data);
if ((int)data & (sizeof(sha2_word64)-1))
{
// have to bounce via buffer, otherwise we'll hit unaligned load exception
MEMCPY_BCOPY(context->buffer, data, SHA512_BLOCK_LENGTH);
SHA512_Transform(context, (sha2_word64*)context->buffer);
}
else
SHA512_Transform(context, (sha2_word64*)data);
ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3);
len -= SHA512_BLOCK_LENGTH;
data += SHA512_BLOCK_LENGTH;
Expand Down
17 changes: 15 additions & 2 deletions app/http/httpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,20 +451,33 @@ static void ICACHE_FLASH_ATTR http_timeout_callback( void *arg )
struct espconn * conn = (struct espconn *) arg;
if ( conn == NULL )
{
HTTPCLIENT_DEBUG( "Connection is NULL" );
return;
}
if ( conn->reverse == NULL )
{
HTTPCLIENT_DEBUG( "Connection request data (reverse) is NULL" );
return;
}
request_args_t * req = (request_args_t *) conn->reverse;
HTTPCLIENT_DEBUG( "Calling disconnect" );
/* Call disconnect */
sint8 result;
#ifdef CLIENT_SSL_ENABLE
if ( req->secure )
espconn_secure_disconnect( conn );
result = espconn_secure_disconnect( conn );
else
#endif
espconn_disconnect( conn );
result = espconn_disconnect( conn );

if (result == ESPCONN_OK || result == ESPCONN_INPROGRESS)
return;
else
{
/* not connected; execute the callback ourselves. */
HTTPCLIENT_DEBUG( "manually Calling disconnect callback due to error %d", result );
http_disconnect_callback( arg );
}
}


Expand Down
4 changes: 1 addition & 3 deletions app/include/lwip/app/dhcpserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ typedef struct dhcps_msg {
uint8_t chaddr[16];
uint8_t sname[64];
uint8_t file[128];
// Recommendation from Espressif:
// To avoid crash in DHCP big packages modify option length from 312 to MTU - IPHEAD(20) - UDPHEAD(8) - DHCPHEAD(236).
uint8_t options[IP_FRAG_MAX_MTU - 20 - 8 - 236];
uint8_t options[312];
}dhcps_msg;

#ifndef LWIP_OPEN_SRC
Expand Down
1 change: 1 addition & 0 deletions app/include/rtc/rtctime.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ struct rtc_tm{

void TEXT_SECTION_ATTR rtctime_early_startup (void);
void rtctime_late_startup (void);
void rtctime_adjust_rate (int rate);
void rtctime_gettimeofday (struct rtc_timeval *tv);
void rtctime_settimeofday (const struct rtc_timeval *tv);
bool rtctime_have_time (void);
Expand Down
Loading