Skip to content

This is an implementation for reading/writing IP related information (IP Address, Subnet, Gateway and DNS) from/to Arduino EEPROM. Tested on Arduino Ethernet board which has 1k of EEPROM but can be adapted to other Arduino boards.

eddyyanto/arduino-eeprom

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Arduino EEPROM Read/Write

Arduino Board Ethernet

This is an implementation for reading/writing IP related information (IP Address, Subnet, Gateway and DNS) from/to Arduino EEPROM. Tested on Arduino Ethernet board which has 1k of EEPROM but can be adapted to other Arduino boards.

API Structure:

COMMAND:PARAM:VALUE

Available serial API:

  • WRITE:IP:192.168.1.50
  • WRITE:SUBNET:255.255.255.0
  • WRITE:GATEWAY:192.168.1.254
  • WRITE:DNS:192.168.1.254
  • READ:IP
  • READ:SUBNET
  • READ:GATEWAY
  • READ:DNS
  • RESTART:NET

Assigned EEPROM Addresses:

  • IP : 0-3
  • SUBNET : 4-7
  • GATEWAY : 8-11
  • DNS : 12-15

Example:

<< Serial port COM6 opened
>> READ:IP
<< IP : 192.168.1.100
>> WRITE:IP:192.168.1.50
<< WRITE OK
>> RESTART:NET
<< RESTART OK
>> READ:IP
<< IP : 192.168.1.50

About

This is an implementation for reading/writing IP related information (IP Address, Subnet, Gateway and DNS) from/to Arduino EEPROM. Tested on Arduino Ethernet board which has 1k of EEPROM but can be adapted to other Arduino boards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%