Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
avr-pager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yids
avr-pager
Commits
580c7890
Commit
580c7890
authored
Aug 29, 2016
by
hark
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 185.52.224.4:yids/avr-pager
Conflicts: arduino-rx/Makefile
parents
564c230a
09df4daa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
arduino-rx/Makefile
arduino-rx/Makefile
+2
-0
arduino-tx/arduino-tx.ino
arduino-tx/arduino-tx.ino
+11
-4
No files found.
arduino-rx/Makefile
View file @
580c7890
...
...
@@ -6,6 +6,8 @@ include /usr/share/arduino/Arduino.mk
DEVICE_PATH
=
/dev/ttyUSB0
#DEVICE_PATH = /tmp/simavr-uart0
TARGET
=
arduino-rx
debugger
:
all
...
...
arduino-tx/arduino-tx.ino
View file @
580c7890
...
...
@@ -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