Simple REST Web server library for small IoT devices. Users can be made the IoT device for REST-based web services available in this project using C language / WIZwiki-W7500ECO platform board.
##### PinoutFor more details, please refer to WIZ550web Wiki page in WIZnet Wiki.
- Keil uVision5 IDE v5.10
Build and Firmware write to target board: WIZwiki-W7500ECO
KEIL uVision5 project file can be found in below file path.
- Writing firmware into WIZwiki-W7500ECO has three ways
- Using the CMSIS-DAP (Drag and Drop)
- Using the CMSIS-DAP (through KEIL uVision5)
- Using the ISP (ISP, In-System Programming)
For more details, please refer to WIZnet wiki site.
- All resources(URI) are represented in lower case letters.
- REST API Document is under construction. It will be update continuously.
[:id] : pre-defined 4-I/O pins, 'a', 'b', 'c', 'd'.
- 'a' : P30 pin (digital input / digital output / analog input)
- 'b' : P29 pin (digital input / digital output / analog input)
- 'c' : P28 pin (digital input / digital output / analog input)
- 'd' : P27 pin (digital input / digital output / analog input)
http://w7500xRESTAPI.local/index
- Controllable all IO pins and Resources list includes URL, HTTP method and simple descriptions
http://w7500xRESTAPI.local/uptime
- Device uptime
http://w7500xRESTAPI.local/netinfo
- Network information (e.g., MAC / IP address ...)
http://w7500xRESTAPI.local/userio
- All active user IO's ID / Type (Digital or Analog) / Direction (Input or Output)
http://w7500xRESTAPI.local/userio/:id
- Get the User IO's status or value
http://w7500xRESTAPI.local/userio/:id/info
- Get the user IO's ID / Type / Direction
http://w7500xRESTAPI.local/userio/:id
- Activate (Create) the specified IO
http://w7500xRESTAPI.local/userio/:id
- Set (change) the User IO's status (digital output only)
http://w7500xRESTAPI.local/userio/:id/info
- Set (change) the User IO's Type / Direction
http://w7500xRESTAPI.local/userio/:id
- Deactivate (Delete) the specified IO
Connect your board to your network and run test tool. These library has been tested on Postman Builder.
For more details about Postman, please refer to Postman Chrome webstore.
GET http://w7500xRESTAPI.local
- Results: It returns all resources list supported by the board as representation in JSON.
- Includes defined id list for I/O pins
- URL '/' is substituted with '/index', Thus, this URL is recognized as [http://w7500xRESTAPI.local/index]
GET http://w7500xRESTAPI.local/netinfo
- Results: It returns board's network setting like MAC / IP address as representation in JSON.
GET http://w7500xRESTAPI.local/userio
- Results: It returns setting of activated IO on board as representation in JSON. Each IO's JSON object includes three-keys. (ID / Type / Direction)