A method and system for performing transcutaneaous electrical nerve stimulation (TENS) via a portable mobile device. The TENS system includes a wireless radio, a microcontroller, and a switch. The wireless radio is compliant with a wireless networking standard, and is configured to wirelessly receive, in accordance with the wireless networking standard, instructions derived from a first treatment plan selected from one or more treatment plans, wherein each treatment plan of the one or more treatment plans respectively specifies characteristics of an electrical current including a desired pulse and timing associated with the treatment plan. The microcontroller is configured to process the instructions derived from the first treatment plan, and output settings specific to the processed instructions. The switch is configured to, based on the settings specific to the processed instructions, deliver the electric current to the patient at the desired pulse and timing as specified by the first treatment plan.