Updated wifi to include repeat and averaging

Updated C server code

TODO: Currently only client code of python and server code of C
have been updated.