Coder Social home page Coder Social logo

fredfellman / esp8266-ptpd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 576 KB

IEEE-1588-2008 implementation on ESP8266, Ported from PTPd 2.3.1

License: BSD 2-Clause "Simplified" License

Makefile 1.53% Shell 0.22% C 96.90% Batchfile 0.20% C++ 1.16%

esp8266-ptpd's Introduction

esp8266-ptpd

IEEE-1588-2008 implementation on ESP8266, ported from PTPd 2.3.1.

Currently based on ESP non-OS SDK v1.3.0, with lwIP library released by Espressif.

Sample ./app/include/custom_defines.h :

#ifndef __CUSTOM_DEFINES_H__
#define __CUSTOM_DEFINES_H__

#define UART_BAUDRATE   921600

#define STATION_MODE_AP_SSID        "SensorNetwork"
#define STATION_MODE_AP_PASSWORD    "123456"
#define STATION_MODE_AP_HAS_BSSID   0
#define STATION_MODE_AP_BSSID       {0, 0, 0, 0, 0, 0}

#define DHCP_CLIENT_HOSTNAME    "Node-%02X%02X%02X", macaddr[3], macaddr[4], macaddr[5]

#define OTA_UPGRADE_COMMAND     "update\n"
#define TCP_SERVER_LOCAL_PORT   4321

#define OTA_UPGRADE_HTTP_REQUEST "GET /ota/%s HTTP/1.0\r\nHost: "IPSTR":%d\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\n\r\n",\
                user_bin,\
                IP2STR(upgrade_server.ip),\
                upgrade_server.port

/* 31 characters max */
#define OTA_USER1_BIN_FILENAME  "user1.1024.new.2.bin"
#define OTA_USER2_BIN_FILENAME  "user2.1024.new.2.bin"

#endif

esp8266-ptpd's People

Contributors

reesewang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.