Skip to content

Commit

Permalink
update to arduino IDE v1000
Browse files Browse the repository at this point in the history
  • Loading branch information
linksprite committed Apr 9, 2012
1 parent 1590897 commit 031f430
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 29 deletions.
25 changes: 3 additions & 22 deletions README
@@ -1,26 +1,7 @@
WiShield library and TCP/IP stack files for the WiShield 1.0 wireless devices
cuhead library and TCP/IP stack files for the cuhead wifi wireless devices

Async Labs Inc.
www.asynclabs.com

-------------------------------------------------------------------------------
Version 1.2.0
-------------------------------------------------------------------------------
Changes:
- Fixed buffer overflow issue
- Added files for WiServer implementation
- Removed stray debug prints from source code
- Made sketches uniform to existing examples
- Added missing implementation for setURL function
- Adding support for using Digital pin 8 on Arduino as the interrupt pin for
WiShield
- Added function for base64 encoding
- Fixing IP address assignment macro

New features:
- Adding sample SocketApp sketch to demonstrate using WiShield for socket
communication
- Adding UDPApp sketch to demonstarte use of UDP protocol for communication
LinkSprite.com

Known issues:
None
Support Arduino IDE 1000
6 changes: 4 additions & 2 deletions WiServer.cpp
Expand Up @@ -35,8 +35,10 @@
*****************************************************************************/


#include "WProgram.h"

#include "WiServer.h"
#include <Arduino.h>


extern "C" {
#include "g2100.h"
Expand Down Expand Up @@ -209,7 +211,7 @@ void Server::printTime(long t) {
/*
* Writes a byte to the virtual buffer for the current connection
*/
void Server::write(uint8_t b) {
size_t Server::write(uint8_t b) {

// Make sure there's a current connection
if (uip_conn) {
Expand Down
2 changes: 1 addition & 1 deletion WiServer.h
Expand Up @@ -195,7 +195,7 @@ class Server: public Print
/**
* Writes a single byte to the current connection buffer
*/
virtual void write(uint8_t);
virtual size_t write(uint8_t);

/**
* Prints a string that is stored in program memory
Expand Down
2 changes: 1 addition & 1 deletion WiShield.cpp
Expand Up @@ -43,7 +43,7 @@ extern "C" {
void stack_process(void);
}

#include "WProgram.h"
#include <Arduino.h>
#include "WiShield.h"

void WiShield::init()
Expand Down
4 changes: 2 additions & 2 deletions apps-conf.h
Expand Up @@ -36,11 +36,11 @@
#define __APPS_CONF_H__

//Here we include the header file for the application(s) we use in our project.
#define APP_WEBSERVER
//#define APP_WEBSERVER
//#define APP_WEBCLIENT
//#define APP_SOCKAPP
//#define APP_UDPAPP
//#define APP_WISERVER
#define APP_WISERVER

#ifdef APP_WEBSERVER
#include "webserver.h"
Expand Down
2 changes: 1 addition & 1 deletion clock-arch.c
Expand Up @@ -41,7 +41,7 @@
#include <avr/sfr_defs.h>

#include "clock-arch.h"
#include "wiring.h"
#include "wiring_private.h"

#if 0
//Counted time
Expand Down

0 comments on commit 031f430

Please sign in to comment.