test program of http server
Dependencies: mbed mbed-rtos EthernetInterface HTTP_SERVER
main.cpp@0:2a0ad778ce0f, 2020-10-21 (annotated)
- Committer:
- aktk
- Date:
- Wed Oct 21 19:29:00 2020 +0000
- Revision:
- 0:2a0ad778ce0f
verified as it works on 06 dec 2016
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aktk | 0:2a0ad778ce0f | 1 | #include "mbed.h" |
aktk | 0:2a0ad778ce0f | 2 | #include "HTTP_SERVER.h" |
aktk | 0:2a0ad778ce0f | 3 | int main() |
aktk | 0:2a0ad778ce0f | 4 | { |
aktk | 0:2a0ad778ce0f | 5 | HttpServer httpsvr; |
aktk | 0:2a0ad778ce0f | 6 | if(httpsvr.init()){ |
aktk | 0:2a0ad778ce0f | 7 | if(httpsvr.run() == 0) |
aktk | 0:2a0ad778ce0f | 8 | printf("end\r\n"); |
aktk | 0:2a0ad778ce0f | 9 | else |
aktk | 0:2a0ad778ce0f | 10 | printf("error end\r\n"); |
aktk | 0:2a0ad778ce0f | 11 | } |
aktk | 0:2a0ad778ce0f | 12 | return 0; |
aktk | 0:2a0ad778ce0f | 13 | } |