Text this: Design and optimisation of a low cost Cognitive Mesh Network