And when the code is received, it is translated and read, so another line of code is send back to the original sender, and this was usually given to exchange tactics and ideas.
And although these two things helped tremendously, there was one thing invented by Eli Whitney that gave the Union one of the biggest boosts in the Civil War.
Interchangeable parts allowed something that is broken, to be easily repaired due to the mass production of the same type of part, so more guns would be delivered more often because there are less custom guns, so they are easier to make
And thanks to the mass introduction of the Industrial Revolution on the North, the factories they had built helped greatly to mass produce guns and ship them to the front.
This led to a way bigger amount and larger amount of weaponry, so this gave the Union one of the many advantages they needed during the war
It was definitely one of the biggest battles in American history, and thanks to the Union's ideas and inventions, I think this battle would have had a different outcome.
Fun little fact: It was Abraham's idea to use the railroads and the telegraph for use in the war, crazy, right?