preserve / protect your code

hi,

When I search the forum I find topics on how to protect your code from nosy others but I would like to do something else - I have a mega 2560 with an ethernet shield and would like to store my code in the Arduino itself - I think I have progmem enough to store the code.

The idea is that when I go to a browser and issue:

http://arduino.ip/code

that a listing of the code will be displayed on the browser. I think I'll end up doing a spreadsheet macro to generate the code for storing the code in progmem.

Or are there more clever ways to achieve this (apart from normal backup routines) ?

thx!
jhhbe

Why not backing up your code once in a while? What you devised is not as easy as backing code up.

jhhbe:
I think I'll end up doing a spreadsheet macro to generate the code for storing the code in progmem.

So your source code is going to contain a copy of itself? Good luck getting that to work...

So your source code is going to contain a copy of itself? Good luck getting that to work...

It'll be easy. Just call loop() from inside loop().