Need to replace string char in string and retransmitt

Hi Sir/Mam,

I am doing one project where requirement is like:
Getting serial data from source ---> replace some char like F to W and K to Q ----> Retransmit again serially .
I have Arduino mega.
Really appreciate your time.
Kindly guide for the same... Thank you...

it's not difficult:

  • get a byte (Serial.read())
  • compute replacement char if needed. (using a table or a switch/case)
  • send byte out (Serial.write())

➜ propose some code and we will help

PS/ if you use "Sir", you should use an equivalent level and not a familiar "Mam" (Madam, Lady, ..) or drop the formality

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.