Skip to content

Commit e52b5e9

Browse files
Sylwester DawidaSylwester Dawida
Sylwester Dawida
authored and
Sylwester Dawida
committed
final code
1 parent d51a5cc commit e52b5e9

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

python/.idea/workspace.xml

+8-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/C_code/arduinoTestCode/arduinoTestCode.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ bool checkNewConnection() {
159159
}
160160
}
161161
formatBuff[i] = '\0';
162-
int secourity = 0;//strcmp(formatBuff, secourityCode);
162+
int secourity = strcmp(formatBuff, secourityCode);
163163
if (secourity) {
164+
Serial.print(formatBuff);
164165
//wrong code = disconnect
165166
//Serial.println("Access to robot denyed");
166167
setFrame(mobileRobot, 1, 1, messageId++, accessDenyed);
Binary file not shown.

python/serialComunication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def runRx(self):
221221
while not self.disc:
222222
data = self.serial_port.read(9999999999)
223223
if len(data) > 0:
224-
#print("raw Data: {}".format(data))
224+
print("raw Data: {}".format(data))
225225
if data[0] == 3:
226226
#print("command: {}".format(data[1:]))
227227
self.onDataFunction(data[1:])

0 commit comments

Comments
 (0)