Skip to content

Commit

Permalink
Fix Link Status
Browse files Browse the repository at this point in the history
  • Loading branch information
beegee-tokyo committed Aug 30, 2022
1 parent ee29cb4 commit 4668566
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // Set the MAC address, do not repeat in a network.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

#define SERVER_PORT 80 // Define the server port.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

IPAddress ip(192, 168, 0, 177); // Set the static IP address to use if the DHCP fails to assign.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S
#include <ArduinoMqttClient.h> // Click to install library: http://librarymanager/All#ArduinoMqttClient

#define USER_NAME "admin" // Provide a username and password for authentication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S
#include <ArduinoMqttClient.h> // Click to install library: http://librarymanager/All#ArduinoMqttClient

// You can provide a username and password for authentication.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

#define SERVER_PORT 8080 // Define the server port.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
**/

#include <SPI.h>
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

IPAddress ip(192, 168, 1, 177);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@copyright Copyright (c) 2021
**/

#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800_W5100S
#include <RAK13800_W5100S.h> // Click to install library: http://librarymanager/All#RAK13800-W5100S

#define LOCAL_PORT 8888 // Set the server port.

Expand Down
6 changes: 3 additions & 3 deletions library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RAK13800_W5100S",
"version": "1.0.0",
"name": "RAK13800-W5100S",
"version": "1.0.1",
"keywords": [
"Ethernet",
"W5100S",
Expand All @@ -15,7 +15,7 @@
"platforms": [
"*"
],
"license": "GNU",
"license": "GPL-2.0-or-later",
"authors": [
{
"email": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=RAK13800_W5100S
version=1.0.0
name=RAK13800-W5100S
version=1.0.1
author=RAKWireless <rakwireless.com>
maintainer=RAKWireless <rakwireless.com>
sentence=Arduino library for the RAK13800 Ethernet Module.
Expand Down
6 changes: 6 additions & 0 deletions src/w5100.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ W5100Linkstatus W5100Class::getLinkStatus()
SPI.endTransaction();
if (phystatus & 0x01) return LINK_ON;
return LINK_OFF;
case 51:
SPI.beginTransaction(SPI_ETHERNET_SETTINGS);
phystatus = readPSTATUS_W5100s();
SPI.endTransaction();
if (phystatus & 0x01) return LINK_ON;
return LINK_OFF;
case 52:
SPI.beginTransaction(SPI_ETHERNET_SETTINGS);
phystatus = readPSTATUS_W5200();
Expand Down

0 comments on commit 4668566

Please sign in to comment.