Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
yids
avr-pager
Commits
b9c990a7
Commit
b9c990a7
authored
Aug 23, 2016
by
yids
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some arduino things
parent
a65b911e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
arduino-rx/Makefile
arduino-rx/Makefile
+1
-1
arduino-tx/arduino-tx.ino
arduino-tx/arduino-tx.ino
+11
-4
No files found.
arduino-rx/Makefile
View file @
b9c990a7
...
...
@@ -4,5 +4,5 @@ BOARD_TAG=atmega328
ARDUINO_LIBS
=
RadioHead SPI AESLib Wire LCDI2C_LK162 MemoryFree micro-ecc pagerlib
include
/usr/share/arduino/Arduino.mk
DEVICE_PATH
=
/dev/ttyUSB
2
DEVICE_PATH
=
/dev/ttyUSB
1
TARGET
=
arduino-rx
arduino-tx/arduino-tx.ino
View file @
b9c990a7
...
...
@@ -74,14 +74,21 @@ void loop()
pl_send_message
(
context
);
uint8_t
buffer
[
sizeof
(
struct
pl_pagermessage
)];
memcpy
(
context
->
msg
,
buffer
,
sizeof
(
struct
pl_pagermessage
));
;
manager
.
setHeaderId
(
52
);
manager
.
sendto
(
buffer
,
sizeof
(
struct
pl_pagermessage
),
2
);
manager
.
waitPacketSent
();
//receive the message
context
->
kp
=
receiver
;
pl_receive_message
(
context
);
Serial
.
println
(
"decrypted msg:"
);
Serial
.
println
(
context
->
msg
->
msg
);
//free(sender);
//free(receiver);
//free(context);
delay
(
200
);
// delay(200);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment