openeew / openeew-firmware

Firmware for an OpenEEW sensor.
Apache License 2.0
8 stars 8 forks source link

move test configuration parameters to config.h #9

Closed neilh10 closed 3 years ago

neilh10 commented 3 years ago

I’ve moved the associated “openEEW test station” parameters to config.h in a PR to make it easier to switch between a public “openEEW intergration test setup" and a private “openEEW unit test setup"
Its been tested in my environment with hardware

WiFi was successfully connected WiFi Connected WiFi MAC: A8:03:2A:4D:CC:CC ETH MAC: A8:03:2A:4D:CC:CF A8032A4DCCCC ETH Started

Waiting for time LED_FIRMWARE_DFU - Yellow .LED_FIRMWARE_DFU - Yellow .Time sync'd Mon Apr 12 17:36:02 2021

Contacting the OpenEEW Device Activation Endpoint : https://device-mgmt.openeew.com/activation?ver=1 Sending Device Activation : {"macaddress":"A8032A4DCCCC","firmware_device":"1.4.0"} HTTP Response code: 200 HTTP post response payload: {"org":"7p7xwk","firmware_latest":"1.4.1","firmware_ota_url":"https://download.openeew.com/firmware-1.4.1.bin"} OpenEEW Device Activation directs MQTT data from this sensor to :7p7xwk Version 1.4.1 is higher than: 1.4.0 An OTA upgrade is required. Download the new OpenEEW firmware : https://download.openeew.com/firmware-1.4.1.bin LED_FIRMWARE_OTA - Magenta Opening Server PEM Chain : /mybluemix-net-chain.pem Read /mybluemix-net-chain.pem pem server certificate chain from SPIFFS Starting OpenEEW OTA firmware upgrade... E (9746) esp-tls: mbedtls_ssl_handshake returned -0x2700 E (9750) esp-tls: Failed to open new connection E (9750) TRANS_SSL: Failed to open a new connection E (9750) HTTP_CLIENT: Connection failed, sock < 0 E (9754) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT E (9761) esp_https_ota: Failed to establish HTTP connection The OpenEEW OTA firmware upgrade failed : ESP_FAIL d:7p7xwk:OpenEEW:A8032A4DCCCC MQTT_USER:use-token-auth MQTT_TOKEN:OpenEEW-sens0r MQTT_DEVICEID:d:7p7xwk:OpenEEW:A8032A4DCCCC Attempting MQTT connection...LED_CONNECT_CLOUD - Cyan MQTT Connected Initializing sensor Stopping... Stopped Range 2g Low pass filter = 7 High pass filter = 0 Done initializing Calibrating sensor Calibrating device with 20 FIFO reads

johnwalicki commented 3 years ago

This PR fails the DCO (Developer Certificate of Originality) sign-off. You get one free pass ;-) I'll accept the PR. In the future, please include a -s in your git commit -s -m "message" (where -s will include the "Signed-off-by:" and your name/email)

johnwalicki commented 3 years ago

I had to resolve conflicts with this PR. Fixed. But the patch introduces a regression in config.h because its reverts the version back to 1.4.0 #define OPENEEW_FIRMWARE_VERSION "1.4.0" Will fix via another commit.